X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fstdio%2Fperror.c;h=fdcb4d71c8855201c8a67858e8fa607fff038744;hb=8c0a3d9e5c169fc9d0f246ab59362b658b029ad7;hp=4349ac5e6fc1c75704a7f6bdd2560607fa165af7;hpb=7683fceedebd98dda19b1a379b92406b64ce7f92;p=musl diff --git a/src/stdio/perror.c b/src/stdio/perror.c index 4349ac5e..fdcb4d71 100644 --- a/src/stdio/perror.c +++ b/src/stdio/perror.c @@ -10,7 +10,7 @@ void perror(const char *msg) FLOCK(f); - if (msg) { + if (msg && *msg) { fwrite(msg, strlen(msg), 1, f); fputc(':', f); fputc(' ', f);