summaryrefslogtreecommitdiff
path: root/src/or/control.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2005-05-18 03:52:07 +0000
committerRoger Dingledine <arma@torproject.org>2005-05-18 03:52:07 +0000
commit0fa1890e0efa5123cbd6c7684677c1500eb575b6 (patch)
treedbee35ef19868ec005cd7af01fa10ae5b600460f /src/or/control.c
parentfe78aac02701a118e49e5a23707e5b3d4ad55182 (diff)
downloadtor-0fa1890e0efa5123cbd6c7684677c1500eb575b6.tar.gz
tor-0fa1890e0efa5123cbd6c7684677c1500eb575b6.zip
fix the assumption that uninitialized variables are 0
clean up router_load_single_router() more svn:r4266
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 41bc5d1782..42db20098d 100644
--- a/src/or/control.c
+++ b/src/or/control.c
@@ -827,7 +827,7 @@ static int
handle_control_postdescriptor(connection_t *conn, uint32_t len,
const char *body)
{
- const char *msg;
+ const char *msg=NULL;
switch (router_load_single_router(body, &msg)) {
case -1:
send_control_error(conn,ERR_SYNTAX,msg?msg: "Could not parse descriptor");