summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'file.c')
-rw-r--r--file.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/file.c b/file.c
index d068b34..c3f7678 100644
--- a/file.c
+++ b/file.c
@@ -181,8 +181,7 @@ enter_file (const char *name)
if (! HASH_VACANT (f) && !f->double_colon)
return f;
- new = xmalloc (sizeof (struct file));
- memset (new, '\0', sizeof (struct file));
+ new = xcalloc (sizeof (struct file));
new->name = new->hname = name;
new->update_status = -1;