mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-09 23:00:07 +00:00
misc/tst-tsearch: Additional explicit error checking
This avoids an undefined variable warning with certain GCC versions.
This commit is contained in:
parent
7dfde28a21
commit
ac3da35de5
@ -1,3 +1,7 @@
|
||||
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]
|
||||
|
@ -223,8 +223,10 @@ walk_tree (void *root, int expected_count)
|
||||
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));
|
||||
|
Loading…
Reference in New Issue
Block a user