diff options
author | Yang Tse <yangsita@gmail.com> | 2009-09-16 16:49:02 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2009-09-16 16:49:02 +0000 |
commit | c2c3a46e3e69afb6f34410b89919b2e5c18ce1c4 (patch) | |
tree | 5a8ecbe1e0e36b18afa828734e81615c7519c14e /src | |
parent | 3eee678ab13be2fe2ef7d13d091e0101b8732eac (diff) |
Attempt to silence bogus compiler warning: "Potential null pointer dereference through ptr is detected"
Diffstat (limited to 'src')
-rw-r--r-- | src/writeout.c | 2 |
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 */ |