summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2011-08-04 18:46:16 +0200
committerJim Meyering <meyering@redhat.com>2011-08-08 10:12:38 +0200
commit005534907cdc7ff0a4c7908631ff596c4b07ba56 (patch)
treecbdbfdd848cca309c316dbc8108f68c83d40cd42 /src
parent149499925eaabee4ef4e5c7cfaa033d8db218c2a (diff)
downloadcoreutils-005534907cdc7ff0a4c7908631ff596c4b07ba56.tar.xz
maint: use xcalloc rather than xmalloc+memset (no semantic change)
* src/join.c (init_linep): Use xcalloc, not xmalloc+memset.
Diffstat (limited to 'src')
-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;
}