浏览代码

Initialize libevent in circuitmux/destroy_cell_queue test

Nick Mathewson 11 年之前
父节点
当前提交
11c044e46a
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      src/test/test_circuitmux.c

+ 4 - 0
src/test/test_circuitmux.c

@@ -36,7 +36,11 @@ test_cmux_destroy_cell_queue(void *arg)
   circuit_t *circ = NULL;
   cell_queue_t *cq = NULL;
   packed_cell_t *pc = NULL;
+  tor_libevent_cfg cfg;
 
+  memset(&cfg, 0, sizeof(cfg));
+
+  tor_libevent_initialize(&cfg);
   scheduler_init();
 
 #ifdef ENABLE_MEMPOOLS