浏览代码

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;