Browse Source

Make sure that even dumb compilers can tell that bad_cookie and bad_password are set before use.

svn:r11390
Nick Mathewson 16 years ago
parent
commit
4c4280e249
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/or/control.c

+ 1 - 1
src/or/control.c

@@ -953,7 +953,7 @@ handle_control_authenticate(control_connection_t *conn, uint32_t len,
   size_t password_len;
   const char *cp;
   int i;
-  int bad_cookie, bad_password;
+  int bad_cookie=0, bad_password=0;
 
   if (TOR_ISXDIGIT(body[0])) {
     cp = body;