svn commit: r352878 - head/contrib/elftoolchain/elfcopy

Aleksandr Rybalko ray at FreeBSD.org
Sun Sep 29 23:47:24 UTC 2019


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


More information about the svn-src-head mailing list