Browse Source

handle null arguments to legacy bsd err.h functions

rs-1.0
Rich Felker 14 years ago
parent
commit
dc82ee4e30
  1. 4
      src/linux/err.c

4
src/linux/err.c

@ -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…
Cancel
Save