test_entrynodes: fix a GCC warning
commitce692332b83a9eef1e0ca0ad649ef8cb081d711c
authorNick Mathewson <nickm@torproject.org>
Wed, 13 Jun 2018 14:45:15 +0000 (13 10:45 -0400)
committerNick Mathewson <nickm@torproject.org>
Wed, 13 Jun 2018 14:45:15 +0000 (13 10:45 -0400)
tree09a7d25b9e7850cf37c0c3a8e728101018803dd0
parent9713ecfc40c9dafaee5a03e469b0d9d701cc6181
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.
src/test/test_entrynodes.c