From ede2ac0ea268a31ad50aeeeb3a0311243fff9e4f Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Thu, 17 Sep 2009 15:33:32 +0000 Subject: Attempt to silence bogus compiler warning: "Potential null pointer dereference" --- tests/server/tftpd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/server') 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); -- cgit v1.2.3