From: Ken Raeburn Date: Tue, 13 Dec 2016 05:37:20 +0000 (-0500) Subject: Don't memset storage we're about to fill anyway. X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=711bff0d58ae11bf2011de38d57b42678c7d81e4;p=emacs.git Don't memset storage we're about to fill anyway. * src/charset.c (load_charset_map_from_file): Don't bother to memset the large allocated arrays before filling them. --- diff --git a/src/charset.c b/src/charset.c index 6ce2f902c81..15a50b29d0b 100644 --- a/src/charset.c +++ b/src/charset.c @@ -501,7 +501,6 @@ load_charset_map_from_file (struct charset *charset, Lisp_Object mapfile, large (larger than MAX_ALLOCA). */ head = record_xmalloc (sizeof *head); entries = head; - memset (entries, 0, sizeof (struct charset_map_entries)); n_entries = 0; int ch = -1; @@ -535,7 +534,6 @@ load_charset_map_from_file (struct charset *charset, Lisp_Object mapfile, { entries->next = record_xmalloc (sizeof *entries->next); entries = entries->next; - memset (entries, 0, sizeof (struct charset_map_entries)); n_entries = 0; } int idx = n_entries;