Attempt to silence bogus compiler warning: "Potential null pointer dereference"

This commit is contained in:
Yang Tse 2009-09-17 15:33:32 +00:00
parent d006efebc0
commit ede2ac0ea2
1 changed files with 1 additions and 1 deletions

View File

@ -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);