Attempt to silence bogus compiler warning: "Potential null pointer dereference through ptr is detected"
This commit is contained in:
parent
3eee678ab1
commit
c2c3a46e3e
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user