Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Nov 2018 18:15:23 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r340842 - head/libexec/rtld-elf/amd64
Message-ID:  <201811231815.wANIFN1q082281@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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().



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201811231815.wANIFN1q082281>