Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Jun 2019 03:02:43 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r348719 - stable/12/contrib/elftoolchain/elfcopy
Message-ID:  <201906060302.x5632hVx057551@repo.freebsd.org>

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



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