mirror of
https://github.com/curl/curl.git
synced 2026-07-26 01:27:15 +03:00
Attempt to silence bogus compiler warning: "Potential null pointer dereference through ptr is detected"
This commit is contained in:
parent
3eee678ab1
commit
c2c3a46e3e
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue