diff options
author | Rich Felker <dalias@aerifal.cx> | 2012-06-20 09:27:28 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2012-06-20 09:27:28 -0400 |
commit | 82a4499e671db62fab1e3928de6e00bb109d4c8d (patch) | |
tree | d367c1d13494f57510dbe425fee2ead625e631a9 /src/stdio/perror.c | |
parent | 85a3ba3a289aa1e0d6cb8ad95f6f358a245a9422 (diff) | |
download | musl-82a4499e671db62fab1e3928de6e00bb109d4c8d.tar.gz |
minor perror behavior fix
patch by nsz
Diffstat (limited to 'src/stdio/perror.c')
-rw-r--r-- | src/stdio/perror.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |