diff options
Diffstat (limited to 'src/port/snprintf.c')
-rw-r--r-- | src/port/snprintf.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/port/snprintf.c b/src/port/snprintf.c index 43c17e702e2..83584259802 100644 --- a/src/port/snprintf.c +++ b/src/port/snprintf.c @@ -745,6 +745,8 @@ nextch2: strvalue = argvalues[fmtpos].cptr; else strvalue = va_arg(args, char *); + /* Whine if someone tries to print a NULL string */ + Assert(strvalue != NULL); fmtstr(strvalue, leftjust, fieldwidth, precision, pointflag, target); break; |