From: Rich Felker Date: Wed, 20 Jun 2012 13:27:28 +0000 (-0400) Subject: minor perror behavior fix X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=82a4499e671db62fab1e3928de6e00bb109d4c8d;p=musl minor perror behavior fix patch by nsz --- 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);