projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
85a3ba3
)
minor perror behavior fix
author
Rich Felker
<dalias@aerifal.cx>
Wed, 20 Jun 2012 13:27:28 +0000
(09:27 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Wed, 20 Jun 2012 13:27:28 +0000
(09:27 -0400)
patch by nsz
src/stdio/perror.c
patch
|
blob
|
history
diff --git
a/src/stdio/perror.c
b/src/stdio/perror.c
index 4349ac5e6fc1c75704a7f6bdd2560607fa165af7..fdcb4d71c8855201c8a67858e8fa607fff038744 100644
(file)
--- 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);