From: Roger Dingledine Date: Fri, 11 Aug 2006 07:41:21 +0000 (+0000) Subject: fix funny-looking assignment that crashes unit tests X-Git-Tag: tor-0.1.2.1-alpha~65 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f2945754692fe13330ec45922101c50bd8324cd9;p=thirdparty%2Ftor.git fix funny-looking assignment that crashes unit tests svn:r7027 --- 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;