mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
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:
1 parent
149499925e
commit
005534907c
1 file changed
+1
-2
+1
-2
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user