diff options
author | Rob Landley <rob@landley.net> | 2015-09-29 05:32:57 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2015-09-29 05:32:57 -0500 |
commit | 8941e5fef58025591b7441372d486cf5de46dd39 (patch) | |
tree | 478fa4729585479682ca664c639af377cd1d5af5 /lib | |
parent | 3d9dce3b523f5e4a01189d4735c02a9b33d8c7ab (diff) | |
download | toybox-8941e5fef58025591b7441372d486cf5de46dd39.tar.gz |
help_exit() tweak.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/lib.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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(); } |