summaryrefslogtreecommitdiff
path: root/job.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
commit7746a1f74fa7696452a3c25953c7fb9a5feb5a6c (patch)
treeae8f49e2d9fdcf9ab99c9640890231c9e4c51ce5 /job.c
parentc0239cdbfa81e40087cc1d93bcf292eee2a3fc68 (diff)
downloadgunmake-7746a1f74fa7696452a3c25953c7fb9a5feb5a6c.tar.gz
- Rename strieq() to patheq() for clarity.
- Convert xmalloc/memset pairs to xcalloc.
Diffstat (limited to 'job.c')
-rw-r--r--job.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/job.c b/job.c
index 1db7217..edbf569 100644
--- a/job.c
+++ b/job.c
@@ -1611,8 +1611,7 @@ new_job (struct file *file)
/* Start the command sequence, record it in a new
`struct child', and add that to the chain. */
- c = xmalloc (sizeof (struct child));
- memset (c, '\0', sizeof (struct child));
+ c = xcalloc (sizeof (struct child));
c->file = file;
c->command_lines = lines;
c->sh_batch_file = NULL;