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

Reply via email to