From 1702786389a71b28aac9c2f66dc27fa02889de22 Mon Sep 17 00:00:00 2001 From: Luke Bratch Date: Thu, 18 Jul 2019 21:07:06 +0100 Subject: Fix compiler warnings emitted by Clang/LLVM and some older GCC versions. --- functions.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'functions.c') diff --git a/functions.c b/functions.c index a1faf16..8557f7a 100644 --- a/functions.c +++ b/functions.c @@ -1195,7 +1195,7 @@ int addclientcode(int sourcefd, char *code, struct clientcodes *clientcodes, str debugprint(DEBUG_SOME, "addclientcode(): Adding client code '%s' if it doesn't already exist.\n", code); // Make sure there aren't too many client codes already - int counter; + int counter = 0; for (int i = 0; i < MAXCLIENTCODES; i++) { if (clientcodes[i].code[0]) { counter++; -- cgit v1.2.3