Fixed a couple of memory leaks detected by Valgrind.
[citadel.git] / webcit / tools.c
index 809afee948cd49c24c3bb09a7f483192a3fc83fb..df27503ffe072b5d916e122a1007fa84337386a2 100644 (file)
@@ -45,7 +45,7 @@ char *safestrncpy(char *dest, const char *src, size_t n)
  */
 int num_tokens(char *source, char tok)
 {
-       int a;
+       int a = 0;
        int count = 1;
 
        if (source == NULL)