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:
parent
16d9074e1a
commit
92a78e6acf
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue