… oh well, but MidnightBSD gcc picks on "" too, so just stick to NULL, it’s cheapest

This commit is contained in:
tg
2012-11-30 19:58:48 +00:00
parent 0f46c5e321
commit f63bcae02c
2 changed files with 6 additions and 6 deletions

4
main.c
View File

@ -34,7 +34,7 @@
#include <locale.h>
#endif
__RCSID("$MirOS: src/bin/mksh/main.c,v 1.244 2012/11/30 19:51:24 tg Exp $");
__RCSID("$MirOS: src/bin/mksh/main.c,v 1.245 2012/11/30 19:58:47 tg Exp $");
extern char **environ;
@ -1135,7 +1135,7 @@ static void vwarningf(unsigned int, const char *, va_list)
static void
vwarningf(unsigned int flags, const char *fmt, va_list ap)
{
if (*fmt) {
if (fmt) {
if (flags & VWARNINGF_INTERNAL)
shf_fprintf(shl_out, "internal error: ");
if (flags & VWARNINGF_ERRORPREFIX)