commit | 82a4499e671db62fab1e3928de6e00bb109d4c8d | [log] [tgz] |
---|---|---|
author | Rich Felker <dalias@aerifal.cx> | Wed Jun 20 09:27:28 2012 -0400 |
committer | Rich Felker <dalias@aerifal.cx> | Wed Jun 20 09:27:28 2012 -0400 |
tree | d367c1d13494f57510dbe425fee2ead625e631a9 | |
parent | 85a3ba3a289aa1e0d6cb8ad95f6f358a245a9422 [diff] |
minor perror behavior fix patch by nsz
diff --git a/src/stdio/perror.c b/src/stdio/perror.c index 4349ac5..fdcb4d7 100644 --- a/src/stdio/perror.c +++ b/src/stdio/perror.c
@@ -10,7 +10,7 @@ FLOCK(f); - if (msg) { + if (msg && *msg) { fwrite(msg, strlen(msg), 1, f); fputc(':', f); fputc(' ', f);