Attempt to silence bogus compiler warning: "Potential null pointer dereference through ptr is detected"

This commit is contained in:
Yang Tse 2009-09-16 16:49:02 +00:00
parent 3eee678ab1
commit c2c3a46e3e

View File

@ -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 */