svn commit: r340842 - head/libexec/rtld-elf/amd64

Konstantin Belousov kib at FreeBSD.org
Fri Nov 23 18:15:24 UTC 2018


Author: kib
Date: Fri Nov 23 18:15:23 2018
New Revision: 340842
URL: https://svnweb.freebsd.org/changeset/base/340842

Log:
  Silence gcc warnings.
  
  Reported by:	emaste
  Sponsored by:	The FreeBSD Foundation
  MFC after:	3 days

Modified:
  head/libexec/rtld-elf/amd64/reloc.c

Modified: head/libexec/rtld-elf/amd64/reloc.c
==============================================================================
--- head/libexec/rtld-elf/amd64/reloc.c	Fri Nov 23 16:45:07 2018	(r340841)
+++ head/libexec/rtld-elf/amd64/reloc.c	Fri Nov 23 18:15:23 2018	(r340842)
@@ -138,6 +138,9 @@ reloc_non_plt(Obj_Entry *obj, Obj_Entry *obj_rtld, int
 	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().


More information about the svn-src-all mailing list