diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-06-13 10:45:15 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-06-13 10:45:15 -0400 |
commit | ce692332b83a9eef1e0ca0ad649ef8cb081d711c (patch) | |
tree | 09a7d25b9e7850cf37c0c3a8e728101018803dd0 /src/test/test_channel.c | |
parent | 9713ecfc40c9dafaee5a03e469b0d9d701cc6181 (diff) | |
download | tor-ce692332b83a9eef1e0ca0ad649ef8cb081d711c.tar.gz tor-ce692332b83a9eef1e0ca0ad649ef8cb081d711c.zip |
test_entrynodes: fix a GCC warning
Some versions of GCC complain that the bfn_mock_node_get_by_id
function might return NULL, but we're assuming that it won't.
(We're assuming it won't return NULL because we know in the tests
that we're passing it valid IDs.)
To make GCC happy, tt_assert() that each node_t is set before using
it.
Fixes a second case of bug26269; bugfix on 0.3.0.1-alpha.
Diffstat (limited to 'src/test/test_channel.c')
0 files changed, 0 insertions, 0 deletions