rtld: pacify -Wmaybe-uninitialized from gcc6

Sponsored by:	Dell EMC Isilon
This commit is contained in:
Eric van Gyzen 2019-02-01 23:16:59 +00:00
parent 50b06886a7
commit ac818ca644
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=343672

View File

@ -146,6 +146,10 @@ reloc_non_plt(Obj_Entry *obj, Obj_Entry *obj_rtld, int flags,
} else
cache = NULL;
/* Appease some compilers. */
symval = 0;
def = NULL;
rellim = (const Elf_Rel *)((const char *)obj->rel + obj->relsize);
for (rel = obj->rel; rel < rellim; rel++) {
switch (ELF_R_TYPE(rel->r_info)) {