summaryrefslogtreecommitdiffstats
path: root/src/shell.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/shell.c')
-rw-r--r--src/shell.c5
1 files changed, 1 insertions, 4 deletions
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 */