* Initialize more variables during declaration,
[citadel.git] / citadel / user_ops.c
index 9637c14c99654cbef94792f0ae467999be023a14..13e8db773c040a51bbc0c0abf675b325bee75a76 100644 (file)
@@ -166,7 +166,7 @@ int GenerateRelationshipIndex(char *IndexBuf,
 void put_visit(struct visit *newvisit)
 {
        char IndexBuf[32];
-       int IndexLen;
+       int IndexLen = 0;
 
        /* Generate an index */
        IndexLen = GenerateRelationshipIndex(IndexBuf,
@@ -462,7 +462,7 @@ void cmd_user(char *cmdbuf)
  */
 void session_startup(void)
 {
-       int i;
+       int i = 0;
 
        lprintf(CTDL_NOTICE, "<%s> logged in\n", CC->curr_user);