Browse Source

Initialize libevent in circuitmux/destroy_cell_queue test

Nick Mathewson 9 years ago
parent
commit
11c044e46a
1 changed files with 4 additions and 0 deletions
  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