Преглед изворни кода

fix funny-looking assignment that crashes unit tests

svn:r7027
Roger Dingledine пре 19 година
родитељ
комит
f294575469
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/or/config.c

+ 1 - 1
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;