提交 dc82ee4e 编写于 作者: R Rich Felker

handle null arguments to legacy bsd err.h functions

上级 3f80afc5
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册