From 7746a1f74fa7696452a3c25953c7fb9a5feb5a6c Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Thu, 1 Jul 2010 05:59:08 +0000 Subject: - Rename strieq() to patheq() for clarity. - Convert xmalloc/memset pairs to xcalloc. --- file.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'file.c') 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; -- cgit v1.2.3