mirror of
https://github.com/fluencelabs/musl
synced 2025-05-21 11:41:29 +00:00
minor perror behavior fix
patch by nsz
This commit is contained in:
parent
85a3ba3a28
commit
82a4499e67
@ -10,7 +10,7 @@ void perror(const char *msg)
|
|||||||
|
|
||||||
FLOCK(f);
|
FLOCK(f);
|
||||||
|
|
||||||
if (msg) {
|
if (msg && *msg) {
|
||||||
fwrite(msg, strlen(msg), 1, f);
|
fwrite(msg, strlen(msg), 1, f);
|
||||||
fputc(':', f);
|
fputc(':', f);
|
||||||
fputc(' ', f);
|
fputc(' ', f);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user