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

Mark Johnston markj at FreeBSD.org
Thu Jun 6 03:02:46 UTC 2019


Author: markj
Date: Thu Jun  6 03:02:43 2019
New Revision: 348719
URL: https://svnweb.freebsd.org/changeset/base/348719

Log:
  MFC r348430:
  elfcopy: Remove an unneeded memset.

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

Modified: stable/12/contrib/elftoolchain/elfcopy/main.c
==============================================================================
--- stable/12/contrib/elftoolchain/elfcopy/main.c	Thu Jun  6 03:02:25 2019	(r348718)
+++ stable/12/contrib/elftoolchain/elfcopy/main.c	Thu Jun  6 03:02:43 2019	(r348719)
@@ -1565,7 +1565,6 @@ main(int argc, char **argv)
 	ecp = calloc(1, sizeof(*ecp));
 	if (ecp == NULL)
 		err(EXIT_FAILURE, "calloc failed");
-	memset(ecp, 0, sizeof(*ecp));
 
 	ecp->itf = ecp->otf = ETF_ELF;
 	ecp->iec = ecp->oec = ELFCLASSNONE;


More information about the svn-src-stable mailing list