X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Futils.c;h=29bf970905d58ffdcba9fe68cc7c62526fc9430e;hb=906814431bddeb2061825fa1ebad1a967b6d87a9;hp=6cf80fe3d229a2fab28ec00dd4b9149e0e11279f;hpb=8d6942415d22f6ca4377340ca26e345c3f5fa5db;p=ppp.git diff --git a/pppd/utils.c b/pppd/utils.c index 6cf80fe..29bf970 100644 --- a/pppd/utils.c +++ b/pppd/utils.c @@ -296,6 +296,8 @@ vslprintf(buf, buflen, fmt, args) case 'q': /* quoted string */ quoted = c == 'q'; p = va_arg(args, unsigned char *); + if (p == NULL) + p = (unsigned char *)""; if (fillch == '0' && prec >= 0) { n = prec; } else {