[or-cvs] r11390: Make sure that even dumb compilers can tell that bad_cookie (tor/trunk/src/or)

nickm at seul.org nickm at seul.org
Thu Sep 6 18:04:29 UTC 2007


Author: nickm
Date: 2007-09-06 14:04:28 -0400 (Thu, 06 Sep 2007)
New Revision: 11390

Modified:
   tor/trunk/src/or/control.c
Log:
Make sure that even dumb compilers can tell that bad_cookie and bad_password are set before use.

Modified: tor/trunk/src/or/control.c
===================================================================
--- tor/trunk/src/or/control.c	2007-09-06 18:03:56 UTC (rev 11389)
+++ tor/trunk/src/or/control.c	2007-09-06 18:04:28 UTC (rev 11390)
@@ -953,7 +953,7 @@
   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;



More information about the tor-commits mailing list