diff options
Diffstat (limited to 'Src/utils.c')
-rw-r--r-- | Src/utils.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Src/utils.c b/Src/utils.c index 140d00d32..1162968fd 100644 --- a/Src/utils.c +++ b/Src/utils.c @@ -91,8 +91,10 @@ zwarnnam(const char *cmd, const char *fmt, const char *str, int num) nicezputs(scriptname ? scriptname : argzero, stderr); fputs(": ", stderr); } - nicezputs(cmd, stderr); - fputs(": ", stderr); + if (cmd) { + nicezputs(cmd, stderr); + fputs(": ", stderr); + } zerrmsg(fmt, str, num); } |