Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 May 2019 15:26:39 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r348430 - head/contrib/elftoolchain/elfcopy
Message-ID:  <201905301526.x4UFQdrK030479@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201905301526.x4UFQdrK030479>