diff options
author | Sascha Hauer <sha@octopus.labnet.pengutronix.de> | 2007-09-26 13:55:01 +0200 |
---|---|---|
committer | Sascha Hauer <sha@octopus.labnet.pengutronix.de> | 2007-09-26 13:55:01 +0200 |
commit | fb441a11a076678c3882950cee3515cef3c17203 (patch) | |
tree | cf1554ddb23a54d1693303e14fd9198b1f1260fa /common/hush.c | |
parent | 00c65e44ca3e7e749ac94e48c44e9634eec5c562 (diff) | |
download | barebox-fb441a11a076678c3882950cee3515cef3c17203.tar.gz barebox-fb441a11a076678c3882950cee3515cef3c17203.tar.xz |
hush.c: use xzalloc instead of xmalloc to save some bytes
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) |