diff options
author | Yang Tse <yangsita@gmail.com> | 2009-09-17 15:33:32 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2009-09-17 15:33:32 +0000 |
commit | ede2ac0ea268a31ad50aeeeb3a0311243fff9e4f (patch) | |
tree | b8f6270722f1739c952da9920a28e18f0454f7e5 /tests/server | |
parent | d006efebc009faaed7a2635a7abdc0c12306f2c2 (diff) |
Attempt to silence bogus compiler warning: "Potential null pointer dereference"
Diffstat (limited to 'tests/server')
-rw-r--r-- | tests/server/tftpd.c | 2 |
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); |