浏览代码

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

svn:r11390
Nick Mathewson 18 年之前
父节点
当前提交
4c4280e249
共有 1 个文件被更改,包括 1 次插入1 次删除
  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;