Use config_new() to construct configuration objects.

We'll need to do it this way once the objects become more complex.
This commit is contained in:
Nick Mathewson
2019-07-23 10:13:29 -04:00
parent a1b2817abe
commit 57e87cc86c
5 changed files with 12 additions and 14 deletions
+1 -1
View File
@@ -111,7 +111,7 @@ global_init(void)
}
/* set up the options. */
mock_options = tor_malloc_zero(sizeof(or_options_t));
mock_options = options_new();
MOCK(get_options, mock_get_options);
/* Make BUG() and nonfatal asserts crash */