Commit 1d9de294 authored by Nick Mathewson's avatar Nick Mathewson 🤹
Browse files

test_hs_control: initialize pointers to NULL

This is an attempt to fix CID 1486276, where coverity warns us that,
if the tests failed, we might free() an uninitialized pointer.
parent 9b2d179d
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -798,7 +798,7 @@ test_hs_control_add_onion_helper_add_service(void *arg)
  hs_service_ht *global_map;
  hs_service_ht *global_map;
  hs_port_config_t *portcfg;
  hs_port_config_t *portcfg;
  smartlist_t *portcfgs;
  smartlist_t *portcfgs;
  char *address_out_good, *address_out_bad;
  char *address_out_good = NULL, *address_out_bad = NULL;
  hs_service_t *service_good = NULL;
  hs_service_t *service_good = NULL;
  hs_service_t *service_bad = NULL;
  hs_service_t *service_bad = NULL;