From 8941e5fef58025591b7441372d486cf5de46dd39 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Tue, 29 Sep 2015 05:32:57 -0500 Subject: help_exit() tweak. --- lib/lib.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/lib.c b/lib/lib.c index 9e0a3a52..d9bea891 100644 --- a/lib/lib.c +++ b/lib/lib.c @@ -56,9 +56,11 @@ void help_exit(char *msg, ...) if (CFG_TOYBOX_HELP) show_help(stderr); - va_start(va, msg); - verror_msg(msg, 0, va); - va_end(va); + if (msg) { + va_start(va, msg); + verror_msg(msg, 0, va); + va_end(va); + } xexit(); } -- cgit v1.2.3