maint: use xcalloc rather than xmalloc+memset (no semantic change)

* src/join.c (init_linep): Use xcalloc, not xmalloc+memset.
This commit is contained in:
Jim Meyering committed 2011-08-08 10:12:38 +02:00
1 parent 149499925e
commit 005534907c
1 file changed
+1 -2
+1 -2
View File
@@ -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;
}