diff options
Diffstat (limited to 'common/hush.c')
-rw-r--r-- | common/hush.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/common/hush.c b/common/hush.c index 9eb490b481..ccc8698bc6 100644 --- a/common/hush.c +++ b/common/hush.c @@ -833,14 +833,7 @@ static int is_assignment(const char *s) static struct pipe *new_pipe(void) { - struct pipe *pi; - pi = xmalloc(sizeof(struct pipe)); - pi->num_progs = 0; - pi->progs = NULL; - pi->next = NULL; - pi->followup = 0; /* invalid */ - pi->r_mode = RES_NONE; - return pi; + return (struct pipe *)xzalloc(sizeof(struct pipe)); } static void initialize_context(struct p_context *ctx) |