svn commit: r356083 - stable/12/contrib/elftoolchain/elfcopy

Aleksandr Rybalko ray at FreeBSD.org
Wed Dec 25 22:19:24 UTC 2019


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");


More information about the svn-src-all mailing list