From 005534907cdc7ff0a4c7908631ff596c4b07ba56 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 4 Aug 2011 18:46:16 +0200 Subject: [PATCH] maint: use xcalloc rather than xmalloc+memset (no semantic change) * src/join.c (init_linep): Use xcalloc, not xmalloc+memset. --- src/join.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; } -- 2.47.2