Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Sep 2019 23:47:23 +0000 (UTC)
From:      Aleksandr Rybalko <ray@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r352878 - head/contrib/elftoolchain/elfcopy
Message-ID:  <201909292347.x8TNlNPl032053@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ray
Date: Sun Sep 29 23:47:23 2019
New Revision: 352878
URL: https://svnweb.freebsd.org/changeset/base/352878

Log:
  Initialize baseaddr to suppres warning.
  
  Pointy hat to:	ray

Modified:
  head/contrib/elftoolchain/elfcopy/binary.c

Modified: head/contrib/elftoolchain/elfcopy/binary.c
==============================================================================
--- head/contrib/elftoolchain/elfcopy/binary.c	Sun Sep 29 22:41:06 2019	(r352877)
+++ head/contrib/elftoolchain/elfcopy/binary.c	Sun Sep 29 23:47:23 2019	(r352878)
@@ -58,6 +58,7 @@ create_binary(int ifd, int ofd)
 		errx(EXIT_FAILURE, "elf_begin() failed: %s",
 		    elf_errmsg(-1));
 
+	baseaddr = 0;
 	baseoff = 0;
 	if (lseek(ofd, baseoff, SEEK_SET) < 0)
 		err(EXIT_FAILURE, "lseek failed");



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