aboutsummaryrefslogtreecommitdiff
path: root/lib/lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/lib.c')
-rw-r--r--lib/lib.c8
1 files changed, 5 insertions, 3 deletions
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();
}