X-Git-Url: http://pileus.org/git/?p=lackey;a=blobdiff_plain;f=src%2Futil.c;fp=src%2Futil.c;h=d74a7469d0914c23a909140066c95ec3d501775d;hp=1ebecfc02dae764fead047a08765eecbc4c0e3ca;hb=39c440444ff38c0e1702209c67cf018b92c71882;hpb=11458d86386ce37543f7fa26512de15db703df75 diff --git a/src/util.c b/src/util.c index 1ebecfc..d74a746 100644 --- a/src/util.c +++ b/src/util.c @@ -28,6 +28,7 @@ #include "view.h" #include "util.h" +#pragma weak view_exit #pragma weak view_debug /* Static data */ @@ -155,6 +156,7 @@ void error(char *fmt, ...) fflush(stderr); message(stderr, "error", fmt, ap); va_end(ap); - view_exit(); + if (view_exit) + view_exit(); exit(-1); }