minor perror behavior fix

patch by nsz
This commit is contained in:
Rich Felker 2012-06-20 09:27:28 -04:00
parent 85a3ba3a28
commit 82a4499e67

View File

@ -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);