This avoids an undefined variable warning with certain GCC versions.
+2019-05-03 Florian Weimer <fweimer@redhat.com>
+
+ * misc/tst-tsearch.c (walk_tree): Add more error checking.
+
2019-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
[BZ #24506]
size_t first_list_size;
struct walk_trace_element *first_list
= walk_trace_finalize (&walk_trace, &first_list_size);
+ TEST_VERIFY_EXIT (first_list != NULL);
walk_tree_with (root, expected_count, twalk_with_twalk_r);
+ TEST_VERIFY (!walk_trace_has_failed (&walk_trace));
/* Compare the two traces. */
TEST_COMPARE (first_list_size, walk_trace_size (&walk_trace));