Pārlūkot izejas kodu

Initialize libevent in circuitmux/destroy_cell_queue test

Nick Mathewson 9 gadi atpakaļ
vecāks
revīzija
11c044e46a
1 mainītis faili ar 4 papildinājumiem un 0 dzēšanām
  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