From: Jim Meyering Date: Thu, 4 Aug 2011 16:46:16 +0000 (+0200) Subject: maint: use xcalloc rather than xmalloc+memset (no semantic change) X-Git-Tag: v8.13~34 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=005534907cdc7ff0a4c7908631ff596c4b07ba56;p=thirdparty%2Fcoreutils.git maint: use xcalloc rather than xmalloc+memset (no semantic change) * src/join.c (init_linep): Use xcalloc, not xmalloc+memset. --- diff --git a/src/join.c b/src/join.c index 941185c8a1..99d918fd1a 100644 --- a/src/join.c +++ b/src/join.c @@ -405,8 +405,7 @@ reset_line (struct line *line) static struct line * init_linep (struct line **linep) { - struct line *line = xmalloc (sizeof *line); - memset (line, '\0', sizeof *line); + struct line *line = xcalloc (1, sizeof *line); *linep = line; return line; }