diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-09-02 11:55:53 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-09-02 11:56:56 -0400 |
commit | efcab439564dcadc5bc14609a9205d73d236e966 (patch) | |
tree | 32b90aeed52b5d76bb862bd824b16bf0e2c7829a /src/or/connection.c | |
parent | 8139db372528ca02cd572f3f7848e9d174a9b12e (diff) | |
download | tor-efcab439564dcadc5bc14609a9205d73d236e966.tar.gz tor-efcab439564dcadc5bc14609a9205d73d236e966.zip |
Fix a number of clang analyzer false-positives
Most of these are in somewhat non-obvious code where it is probably
a good idea to initialize variables and add extra assertions anyway.
Closes 13036. Patches from "teor".
Diffstat (limited to 'src/or/connection.c')
-rw-r--r-- | src/or/connection.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/connection.c b/src/or/connection.c index 4788bdf950..276dca2818 100644 --- a/src/or/connection.c +++ b/src/or/connection.c @@ -1613,6 +1613,7 @@ connection_connect(connection_t *conn, const char *address, } } + tor_assert(options); if (options->ConstrainedSockets) set_constrained_socket_buffers(s, (int)options->ConstrainedSockSize); |