X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;ds=sidebyside;f=src%2Fstdio%2Fvfprintf.c;h=b5001ff2bd05ab6599ca3763f0be27911f0022b9;hb=a43c3a337f4fd8a273c6fe29604f3b24d8d32760;hp=4c990e5e54fa730c755206a9c5a6b4c597e8b2a3;hpb=a9e6d01114c8b4aa264d5d49aa26de8bda2c76be;p=musl diff --git a/src/stdio/vfprintf.c b/src/stdio/vfprintf.c index 4c990e5e..b5001ff2 100644 --- a/src/stdio/vfprintf.c +++ b/src/stdio/vfprintf.c @@ -584,7 +584,7 @@ static int printf_core(FILE *f, const char *fmt, va_list *ap, union arg *nl_arg, case 'm': if (1) a = strerror(errno); else case 's': - a = arg.p; + a = arg.p ? arg.p : "(null)"; z = memchr(a, 0, p); if (!z) z=a+p; else p=z-a;