Procházet zdrojové kódy

fix funny-looking assignment that crashes unit tests

svn:r7027
Roger Dingledine před 19 roky
rodič
revize
f294575469
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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;