summaryrefslogtreecommitdiffstats
path: root/src/shell.c
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2014-08-22 17:47:51 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2014-08-22 17:47:51 +0200
commitad4999488eadac3a10de99caf50b732af8b771b9 (patch)
treed3ffbbc2830b4bf2b520ae6b734d1c188d465be9 /src/shell.c
parent35a18b1dea21f006b38694dcf5c99f817411ad4d (diff)
downloadfastd-ad4999488eadac3a10de99caf50b732af8b771b9.tar
fastd-ad4999488eadac3a10de99caf50b732af8b771b9.zip
Remove VECTOR_ALLOC
It is done automatically now if the VECTOR is zeroed before.
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 */