Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Dec 2019 22:19:24 +0000 (UTC)
From:      Aleksandr Rybalko <ray@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r356083 - stable/12/contrib/elftoolchain/elfcopy
Message-ID:  <201912252219.xBPMJOAG094105@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ray
Date: Wed Dec 25 22:19:23 2019
New Revision: 356083
URL: https://svnweb.freebsd.org/changeset/base/356083

Log:
  MFC r352878:
  
  Initialize baseaddr to suppres warning.

Modified:
  stable/12/contrib/elftoolchain/elfcopy/binary.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/contrib/elftoolchain/elfcopy/binary.c
==============================================================================
--- stable/12/contrib/elftoolchain/elfcopy/binary.c	Wed Dec 25 22:07:24 2019	(r356082)
+++ stable/12/contrib/elftoolchain/elfcopy/binary.c	Wed Dec 25 22:19:23 2019	(r356083)
@@ -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?201912252219.xBPMJOAG094105>