diff options
author | Jim Meyering <meyering@redhat.com> | 2011-08-04 18:46:16 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2011-08-08 10:12:38 +0200 |
commit | 005534907cdc7ff0a4c7908631ff596c4b07ba56 (patch) | |
tree | cbdbfdd848cca309c316dbc8108f68c83d40cd42 | |
parent | 149499925eaabee4ef4e5c7cfaa033d8db218c2a (diff) | |
download | coreutils-005534907cdc7ff0a4c7908631ff596c4b07ba56.tar.xz |
maint: use xcalloc rather than xmalloc+memset (no semantic change)
* src/join.c (init_linep): Use xcalloc, not xmalloc+memset.
-rw-r--r-- | src/join.c | 3 |
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; } |