summaryrefslogtreecommitdiff
path: root/functions.c
diff options
context:
space:
mode:
authorLuke Bratch <luke@bratch.co.uk>2019-07-18 21:07:06 +0100
committerLuke Bratch <luke@bratch.co.uk>2019-07-18 21:07:06 +0100
commit1702786389a71b28aac9c2f66dc27fa02889de22 (patch)
tree3c38f4f9a6a2aa22e5667a7f1de2c16476982413 /functions.c
parent8f9a58e181d16cad2b86b8116bfe9470774bbdee (diff)
Fix compiler warnings emitted by Clang/LLVM and some older GCC versions.
Diffstat (limited to 'functions.c')
-rw-r--r--functions.c2
1 files changed, 1 insertions, 1 deletions
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++;