aboutsummaryrefslogtreecommitdiff
path: root/src/writeout.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2009-09-16 16:49:02 +0000
committerYang Tse <yangsita@gmail.com>2009-09-16 16:49:02 +0000
commitc2c3a46e3e69afb6f34410b89919b2e5c18ce1c4 (patch)
tree5a8ecbe1e0e36b18afa828734e81615c7519c14e /src/writeout.c
parent3eee678ab13be2fe2ef7d13d091e0101b8732eac (diff)
Attempt to silence bogus compiler warning: "Potential null pointer dereference through ptr is detected"
Diffstat (limited to 'src/writeout.c')
-rw-r--r--src/writeout.c2
1 files changed, 1 insertions, 1 deletions
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 */