summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2010-07-01 05:59:08 +0000
committerPaul Smith <psmith@gnu.org>2010-07-01 05:59:08 +0000
commit9e21dedfd8fd986789b7a719dc3f66ce7f3a0ce7 (patch)
treeae8f49e2d9fdcf9ab99c9640890231c9e4c51ce5 /file.c
parent6c7ce82b5e99c14d704dbef08a157822ec42597a (diff)
downloadmake-9e21dedfd8fd986789b7a719dc3f66ce7f3a0ce7.tar.gz
- Rename strieq() to patheq() for clarity.
- Convert xmalloc/memset pairs to xcalloc.
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 d068b34f..c3f76789 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;