summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2006-08-11 07:41:21 +0000
committerRoger Dingledine <arma@torproject.org>2006-08-11 07:41:21 +0000
commitf2945754692fe13330ec45922101c50bd8324cd9 (patch)
tree4d09c3880cbb6bf40184aa664102ce3753cbe66e /src
parent5647e5c7e6d572dccdc7882626c3d9748552ab91 (diff)
downloadtor-f2945754692fe13330ec45922101c50bd8324cd9.tar.gz
tor-f2945754692fe13330ec45922101c50bd8324cd9.zip
fix funny-looking assignment that crashes unit tests
svn:r7027
Diffstat (limited to 'src')
-rw-r--r--src/or/config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/config.c b/src/or/config.c
index 01623bb469..f7a54f6cfa 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -449,7 +449,7 @@ static or_state_t *global_state = NULL;
static void *
config_alloc(config_format_t *fmt)
{
- void *opts = opts = tor_malloc_zero(fmt->size);
+ void *opts = tor_malloc_zero(fmt->size);
*(uint32_t*)STRUCT_VAR_P(opts, fmt->magic_offset) = fmt->magic;
CHECK(fmt, opts);
return opts;