mirror of https://github.com/moparisthebest/curl
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;
|
long longinfo;
|
||||||
double doubleinfo;
|
double doubleinfo;
|
||||||
|
|
||||||
while(*ptr) {
|
while(ptr && *ptr) {
|
||||||
if('%' == *ptr) {
|
if('%' == *ptr) {
|
||||||
if('%' == ptr[1]) {
|
if('%' == ptr[1]) {
|
||||||
/* an escaped %-letter */
|
/* an escaped %-letter */
|
||||||
|
|
Loading…
Reference in New Issue