X-Git-Url: https://plomlompom.com/repos/feed.xml?a=blobdiff_plain;f=src%2Frexit.c;h=ee71809a27cc671660aae218e2d4da8a3e31be7f;hb=1a32fc2490749bfa11b0b81c99e17e65ef368e0c;hp=d718f19d5656a1c9a0d838c96cd8d6dcc87d6a9d;hpb=6ba18516a602b3d4ad95981887ad9c5eb40a335a;p=plomrogue diff --git a/src/rexit.c b/src/rexit.c index d718f19..ee71809 100644 --- a/src/rexit.c +++ b/src/rexit.c @@ -67,6 +67,10 @@ extern void exit_err(uint8_t err, struct World * world, char * msg) return; } cleanup(world); - printf(msg); + if (NULL == msg) + { + msg = "Some error encountered. Aborted."; + } + printf("%s\n", msg); exit(EXIT_FAILURE); }