Skip to content

Commit

Permalink
lib: Remove a dead assignment from test-array.c
Browse files Browse the repository at this point in the history
Found by scan-build.
  • Loading branch information
mrannanj authored and sirainen committed Aug 31, 2018
1 parent df9dee6 commit 23b623a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/test-array.c
Expand Up @@ -290,7 +290,7 @@ test_array_free_case(bool keep)
test_begin(keep ? "array_free" : "array_free_without_data");

p_array_init(&r, pool, 100);
p = array_append_space(&r);
array_append_zero(&r);
if (keep) {
p = array_free_without_data(&r);
test_assert(pool_allocfree_get_total_used_size(pool)>=400);
Expand Down

0 comments on commit 23b623a

Please sign in to comment.