X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;ds=sidebyside;f=pppd%2Futils.c;h=29bf970905d58ffdcba9fe68cc7c62526fc9430e;hb=234edab99a6bb250cc9ecd384cca27b0c8b475ce;hp=6cf80fe3d229a2fab28ec00dd4b9149e0e11279f;hpb=356d8d558d844412119aa18c8e5a113bc6459c7b;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 {