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

Mark Johnston markj at FreeBSD.org
Thu May 30 15:26:40 UTC 2019


Author: markj
Date: Thu May 30 15:26:39 2019
New Revision: 348430
URL: https://svnweb.freebsd.org/changeset/base/348430

Log:
  elfcopy: Remove an unneeded memset.
  
  Reviewed by:	emaste, trasz
  MFC after:	1 week
  Sponsored by:	The FreeBSD Foundation
  Differential Revision:	https://reviews.freebsd.org/D20445

Modified:
  head/contrib/elftoolchain/elfcopy/main.c

Modified: head/contrib/elftoolchain/elfcopy/main.c
==============================================================================
--- head/contrib/elftoolchain/elfcopy/main.c	Thu May 30 15:23:43 2019	(r348429)
+++ head/contrib/elftoolchain/elfcopy/main.c	Thu May 30 15:26:39 2019	(r348430)
@@ -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-head mailing list