mirror of https://github.com/moparisthebest/curl
Attempt to silence bogus compiler warning: "Potential null pointer dereference"
This commit is contained in:
parent
d006efebc0
commit
ede2ac0ea2
|
@ -623,7 +623,7 @@ again:
|
|||
/* store input protocol */
|
||||
fprintf(server, "filename: %s\n", filename);
|
||||
|
||||
for (cp = mode; *cp; cp++)
|
||||
for (cp = mode; cp && *cp; cp++)
|
||||
if(ISUPPER(*cp))
|
||||
*cp = (char)tolower((int)*cp);
|
||||
|
||||
|
|
Loading…
Reference in New Issue