From 82a4499e671db62fab1e3928de6e00bb109d4c8d Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Wed, 20 Jun 2012 09:27:28 -0400 Subject: minor perror behavior fix patch by nsz --- src/stdio/perror.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.1