summaryrefslogtreecommitdiff
path: root/src/or/control.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-09-06 18:04:28 +0000
committerNick Mathewson <nickm@torproject.org>2007-09-06 18:04:28 +0000
commit4c4280e249a6eec386bc8160c6d89d78e58eba8c (patch)
treeb439d9a9734f5d7106b82713562354fba90bfcda /src/or/control.c
parentf17a38ab04636235e672ccbf7e96742a8e3f79f5 (diff)
downloadtor-4c4280e249a6eec386bc8160c6d89d78e58eba8c.tar.gz
tor-4c4280e249a6eec386bc8160c6d89d78e58eba8c.zip
Make sure that even dumb compilers can tell that bad_cookie and bad_password are set before use.
svn:r11390
Diffstat (limited to 'src/or/control.c')
-rw-r--r--src/or/control.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/control.c b/src/or/control.c
index 63087fab27..83e5f70cbc 100644
--- a/src/or/control.c
+++ b/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;