Explorar el Código

Fix uninitialized-variable warning on options_init_from_string().

Nick Mathewson hace 7 años
padre
commit
4e6b13a38a
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/or/config.c

+ 1 - 1
src/or/config.c

@@ -5056,7 +5056,7 @@ options_init_from_string(const char *cf_defaults, const char *cf,
   config_line_t *cl;
   int retval;
   setopt_err_t err = SETOPT_ERR_MISC;
-  int cf_has_include;
+  int cf_has_include = 0;
   tor_assert(msg);
 
   oldoptions = global_options; /* get_options unfortunately asserts if