Commit 4894d44a authored by Nick Mathewson's avatar Nick Mathewson 🥄
Browse files

Always initialize addr in parse_port_config()

It was always analyzed before use, but scan-build wasn't able to
persuade itself of that.

Closes ticket 28881.
parent 94a79981
o Code simplification and refactoring:
- When parsing a port configuration, make it more
obvious to static analyzer tools that we will always initialize the
address. Closes ticket 28881.
......@@ -6913,6 +6913,8 @@ parse_port_config(smartlist_t *out,
for (; ports; ports = ports->next) {
tor_addr_t addr;
tor_addr_make_unspec(&addr);
int port;
int sessiongroup = SESSION_GROUP_UNSET;
unsigned isolation = ISO_DEFAULT;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment