mirror of
git://git.musl-libc.org/musl
synced 2025-03-04 02:37:30 +00:00
handle null arguments to legacy bsd err.h functions
This commit is contained in:
parent
3f80afc505
commit
dc82ee4e30
@ -5,13 +5,13 @@
|
||||
|
||||
void vwarn(const char *fmt, va_list ap)
|
||||
{
|
||||
vfprintf(stderr, fmt, ap);
|
||||
if (fmt) vfprintf(stderr, fmt, ap);
|
||||
perror("");
|
||||
}
|
||||
|
||||
void vwarnx(const char *fmt, va_list ap)
|
||||
{
|
||||
vfprintf(stderr, fmt, ap);
|
||||
if (fmt) vfprintf(stderr, fmt, ap);
|
||||
putc('\n', stderr);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user