commit | 8941e5fef58025591b7441372d486cf5de46dd39 | [log] [tgz] |
---|---|---|
author | Rob Landley <rob@landley.net> | Tue Sep 29 05:32:57 2015 -0500 |
committer | Rob Landley <rob@landley.net> | Tue Sep 29 05:32:57 2015 -0500 |
tree | 478fa4729585479682ca664c639af377cd1d5af5 | |
parent | 3d9dce3b523f5e4a01189d4735c02a9b33d8c7ab [diff] [blame] |
help_exit() tweak.
diff --git a/lib/lib.c b/lib/lib.c index 9e0a3a5..d9bea89 100644 --- a/lib/lib.c +++ b/lib/lib.c
@@ -56,9 +56,11 @@ 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(); }