Remove compare of global array tagsByName to NULL

A 2016 change (57a96d2486) apparently
changed tagsByName from dynamic allocation to being static, so that
Valgrind would not complain about lost memory. The definition is:

    static headerTagTableEntry tagsByName[TABLESIZE];

But a comparison was left of `tagsByName == NULL` in lib/tagname.c
and compiling with clang gives a warning, saying it is never NULL.
This commit is contained in:
Cerul Alain 2020-07-13 00:34:42 -04:00 committed by Florian Festi
parent 16d9074e1a
commit 92a78e6acf
1 changed files with 1 additions and 1 deletions

View File

@ -234,7 +234,7 @@ int rpmTagGetNames(rpmtd tagnames, int fullname)
pthread_once(&tagsLoaded, loadTags);
if (tagnames == NULL || tagsByName == NULL)
if (tagnames == NULL)
return 0;
rpmtdReset(tagnames);