]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
fix funny-looking assignment that crashes unit tests
authorRoger Dingledine <arma@torproject.org>
Fri, 11 Aug 2006 07:41:21 +0000 (07:41 +0000)
committerRoger Dingledine <arma@torproject.org>
Fri, 11 Aug 2006 07:41:21 +0000 (07:41 +0000)
svn:r7027

src/or/config.c

index 01623bb4690262a7a7e6287dd39a41a245c8812a..f7a54f6cfa574df48c708ee2afc5e75a24a9cd60 100644 (file)
@@ -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;