mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 13:13:44 +01:00
Fix dead-assignment warnings in test_config.c
Found by scan-build.
This commit is contained in:
parent
f8dac5c900
commit
82fb40c8dc
@ -5783,6 +5783,7 @@ test_config_extended_fmt(void *arg)
|
|||||||
tt_str_op(lp->value, OP_EQ, "is back here");
|
tt_str_op(lp->value, OP_EQ, "is back here");
|
||||||
tt_int_op(lp->command, OP_EQ, CONFIG_LINE_NORMAL);
|
tt_int_op(lp->command, OP_EQ, CONFIG_LINE_NORMAL);
|
||||||
lp = lp->next;
|
lp = lp->next;
|
||||||
|
tt_assert(!lp);
|
||||||
config_free_lines(lines);
|
config_free_lines(lines);
|
||||||
|
|
||||||
/* Try with the "extended" flag enabled. */
|
/* Try with the "extended" flag enabled. */
|
||||||
@ -5809,6 +5810,7 @@ test_config_extended_fmt(void *arg)
|
|||||||
tt_str_op(lp->value, OP_EQ, "");
|
tt_str_op(lp->value, OP_EQ, "");
|
||||||
tt_int_op(lp->command, OP_EQ, CONFIG_LINE_CLEAR);
|
tt_int_op(lp->command, OP_EQ, CONFIG_LINE_CLEAR);
|
||||||
lp = lp->next;
|
lp = lp->next;
|
||||||
|
tt_assert(!lp);
|
||||||
|
|
||||||
done:
|
done:
|
||||||
config_free_lines(lines);
|
config_free_lines(lines);
|
||||||
|
Loading…
Reference in New Issue
Block a user