summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-06-20 09:27:28 -0400
committerRich Felker <dalias@aerifal.cx>2012-06-20 09:27:28 -0400
commit82a4499e671db62fab1e3928de6e00bb109d4c8d (patch)
treed367c1d13494f57510dbe425fee2ead625e631a9 /src
parent85a3ba3a289aa1e0d6cb8ad95f6f358a245a9422 (diff)
downloadmusl-82a4499e671db62fab1e3928de6e00bb109d4c8d.tar.gz
musl-82a4499e671db62fab1e3928de6e00bb109d4c8d.tar.bz2
musl-82a4499e671db62fab1e3928de6e00bb109d4c8d.tar.xz
musl-82a4499e671db62fab1e3928de6e00bb109d4c8d.zip
minor perror behavior fix
patch by nsz
Diffstat (limited to 'src')
-rw-r--r--src/stdio/perror.c2
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);