summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/join.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/join.c b/src/join.c
index 941185c8a..99d918fd1 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;
}