diff options
author | Paul Smith <psmith@gnu.org> | 2010-07-01 05:59:08 +0000 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2010-07-01 05:59:08 +0000 |
commit | 7746a1f74fa7696452a3c25953c7fb9a5feb5a6c (patch) | |
tree | ae8f49e2d9fdcf9ab99c9640890231c9e4c51ce5 /file.c | |
parent | c0239cdbfa81e40087cc1d93bcf292eee2a3fc68 (diff) | |
download | gunmake-7746a1f74fa7696452a3c25953c7fb9a5feb5a6c.tar.gz |
- Rename strieq() to patheq() for clarity.
- Convert xmalloc/memset pairs to xcalloc.
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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; |