diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-12-17 09:26:57 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-12-17 09:26:57 -0500 |
commit | 82fb40c8dc2f21753298559e79d898add80bf6b7 (patch) | |
tree | 10551b9989d90dded1470f9ffd702107c8bf66b4 /src/test/test_config.c | |
parent | f8dac5c900856494867996f60da848b0111aad35 (diff) | |
download | tor-82fb40c8dc2f21753298559e79d898add80bf6b7.tar.gz tor-82fb40c8dc2f21753298559e79d898add80bf6b7.zip |
Fix dead-assignment warnings in test_config.c
Found by scan-build.
Diffstat (limited to 'src/test/test_config.c')
-rw-r--r-- | src/test/test_config.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/test_config.c b/src/test/test_config.c index 5140c3c1a8..67a43d669e 100644 --- a/src/test/test_config.c +++ b/src/test/test_config.c @@ -5783,6 +5783,7 @@ test_config_extended_fmt(void *arg) tt_str_op(lp->value, OP_EQ, "is back here"); tt_int_op(lp->command, OP_EQ, CONFIG_LINE_NORMAL); lp = lp->next; + tt_assert(!lp); config_free_lines(lines); /* Try with the "extended" flag enabled. */ @@ -5809,6 +5810,7 @@ test_config_extended_fmt(void *arg) tt_str_op(lp->value, OP_EQ, ""); tt_int_op(lp->command, OP_EQ, CONFIG_LINE_CLEAR); lp = lp->next; + tt_assert(!lp); done: config_free_lines(lines); |