From bac111cc748fa339ad10a2bd9043697d88441d07 Mon Sep 17 00:00:00 2001 From: Konstantin Belousov Date: Fri, 23 Nov 2018 18:15:23 +0000 Subject: [PATCH] Silence gcc warnings. Reported by: emaste Sponsored by: The FreeBSD Foundation MFC after: 3 days --- libexec/rtld-elf/amd64/reloc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libexec/rtld-elf/amd64/reloc.c b/libexec/rtld-elf/amd64/reloc.c index 96c422e26f4..49a714e191e 100644 --- a/libexec/rtld-elf/amd64/reloc.c +++ b/libexec/rtld-elf/amd64/reloc.c @@ -138,6 +138,9 @@ reloc_non_plt(Obj_Entry *obj, Obj_Entry *obj_rtld, int flags, int r; r = -1; + symval = 0; + def = NULL; + /* * The dynamic loader may be called from a thread, we have * limited amounts of stack available so we cannot use alloca().