diff options
author | Colin Walters <walters@verbum.org> | 2019-10-16 19:36:31 +0000 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2019-10-18 15:07:31 +0000 |
commit | a982dc97ea0b18d58be1db19219bf4d97a898525 (patch) | |
tree | a1d3f0488e04473fd19c1443434125baae2e4de2 /tests/test-keyfile-utils.c | |
parent | a0cdb1713dd5f3188604c5cd7165fe01d9989fe0 (diff) | |
download | ostree-a982dc97ea0b18d58be1db19219bf4d97a898525.tar.gz |
tree-wide: [scan-build] Fix some dead stores
No real issues, just quieting the scanner.
Diffstat (limited to 'tests/test-keyfile-utils.c')
-rw-r--r-- | tests/test-keyfile-utils.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/test-keyfile-utils.c b/tests/test-keyfile-utils.c index 258e7dd8..3e4f8257 100644 --- a/tests/test-keyfile-utils.c +++ b/tests/test-keyfile-utils.c @@ -199,8 +199,6 @@ test_get_value_with_default_group_optional (void) static void test_copy_group (void) { - g_auto(GStrv) keys = NULL; - g_auto(GStrv) keys2 = NULL; gsize length, length2, ii; GKeyFile *tmp = g_key_file_new (); const char *section = "section"; @@ -218,8 +216,8 @@ test_copy_group (void) g_assert_true (ot_keyfile_copy_group (g_keyfile, tmp, section)); - keys = g_key_file_get_keys (g_keyfile, section, &length, NULL); - keys2 = g_key_file_get_keys (tmp, section, &length2, NULL); + g_auto(GStrv) keys = g_key_file_get_keys (g_keyfile, section, &length, NULL); + g_strfreev (g_key_file_get_keys (tmp, section, &length2, NULL)); g_assert_cmpint(length, ==, length2); for (ii = 0; ii < length; ii++) |