From: Yang Tse Date: Wed, 16 Sep 2009 16:49:02 +0000 (+0000) Subject: Attempt to silence bogus compiler warning: "Potential null pointer dereference throug... X-Git-Tag: curl-7_19_7~134 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c2c3a46e3e69afb6f34410b89919b2e5c18ce1c4;p=thirdparty%2Fcurl.git Attempt to silence bogus compiler warning: "Potential null pointer dereference through ptr is detected" --- diff --git a/src/writeout.c b/src/writeout.c index 14ba41b925..9aab771840 100644 --- a/src/writeout.c +++ b/src/writeout.c @@ -108,7 +108,7 @@ void ourWriteOut(CURL *curl, const char *writeinfo) long longinfo; double doubleinfo; - while(*ptr) { + while(ptr && *ptr) { if('%' == *ptr) { if('%' == ptr[1]) { /* an escaped %-letter */