From ad4999488eadac3a10de99caf50b732af8b771b9 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Fri, 22 Aug 2014 17:47:51 +0200 Subject: Remove VECTOR_ALLOC It is done automatically now if the VECTOR is zeroed before. --- src/shell.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/shell.c') diff --git a/src/shell.c b/src/shell.c index 87aa320..19dc6e5 100644 --- a/src/shell.c +++ b/src/shell.c @@ -54,10 +54,7 @@ struct fastd_shell_env { /** Allocated a new shell environment */ fastd_shell_env_t * fastd_shell_env_alloc(void) { - fastd_shell_env_t *env = fastd_new(fastd_shell_env_t); - VECTOR_ALLOC(env->entries, 0); - - return env; + return fastd_new0(fastd_shell_env_t); } /** Sets a variable in a shell environment */ -- cgit v1.2.3