aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2009-09-17 15:33:32 +0000
committerYang Tse <yangsita@gmail.com>2009-09-17 15:33:32 +0000
commitede2ac0ea268a31ad50aeeeb3a0311243fff9e4f (patch)
treeb8f6270722f1739c952da9920a28e18f0454f7e5 /tests
parentd006efebc009faaed7a2635a7abdc0c12306f2c2 (diff)
Attempt to silence bogus compiler warning: "Potential null pointer dereference"
Diffstat (limited to 'tests')
-rw-r--r--tests/server/tftpd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/server/tftpd.c b/tests/server/tftpd.c
index 6014842b5..f3e521b75 100644
--- a/tests/server/tftpd.c
+++ b/tests/server/tftpd.c
@@ -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);