diff options
author | Philip Withnall <philip@tecnocode.co.uk> | 2014-10-26 18:08:04 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@redhat.com> | 2014-10-27 21:18:57 +0800 |
commit | 579410427fa11725ca411e45d3ac57db92586ac2 (patch) | |
tree | e9d478c7b9f8347592e8e1891f461b01aab8d802 /testdict.c | |
parent | df23f584fda15955a0811bd768a8925eb98741c9 (diff) | |
download | android_external_libxml2-579410427fa11725ca411e45d3ac57db92586ac2.tar.gz android_external_libxml2-579410427fa11725ca411e45d3ac57db92586ac2.tar.bz2 android_external_libxml2-579410427fa11725ca411e45d3ac57db92586ac2.zip |
Remove various unused value assignments
As detected by Coverity (CIDs 60467–60472).
https://bugzilla.gnome.org/show_bug.cgi?id=739220
Diffstat (limited to 'testdict.c')
-rw-r--r-- | testdict.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -277,7 +277,7 @@ static int run_test2(xmlDictPtr parent) { cur++; *pref = 0; tmp = xmlDictQLookup(dict, &prefix[0], cur); - if (xmlDictQLookup(dict, &prefix[0], cur) != test2[i]) { + if (tmp != test2[i]) { fprintf(stderr, "Failed lookup check for '%s':'%s'\n", &prefix[0], cur); ret = 1; @@ -408,7 +408,7 @@ static int run_test1(void) { cur++; *pref = 0; tmp = xmlDictQLookup(dict, &prefix[0], cur); - if (xmlDictQLookup(dict, &prefix[0], cur) != test1[i]) { + if (tmp != test1[i]) { fprintf(stderr, "Failed lookup check for '%s':'%s'\n", &prefix[0], cur); ret = 1; |