mirror of
git://git.musl-libc.org/musl
synced 2025-03-06 20:48:29 +01:00
minor perror behavior fix
patch by nsz
This commit is contained in:
parent
85a3ba3a28
commit
82a4499e67
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue