musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
diff options
context:
space:
mode:
Diffstat
-rw-r--r--src/stdio/perror.c 2
1 files changed, 1 insertions, 1 deletions
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);
generated by cgit v1.2.1 (git 2.18.0) at 2025年10月05日 15:24:49 +0000

AltStyle によって変換されたページ (->オリジナル) /