From c2c3a46e3e69afb6f34410b89919b2e5c18ce1c4 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Wed, 16 Sep 2009 16:49:02 +0000 Subject: [PATCH] Attempt to silence bogus compiler warning: "Potential null pointer dereference through ptr is detected" --- src/writeout.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/writeout.c b/src/writeout.c index 14ba41b92..9aab77184 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 */