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");
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"