diff options
Diffstat (limited to 'funcs/func_vmcount.c')
-rw-r--r-- | funcs/func_vmcount.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/funcs/func_vmcount.c b/funcs/func_vmcount.c index 7f0282c32..8183b8c74 100644 --- a/funcs/func_vmcount.c +++ b/funcs/func_vmcount.c @@ -47,15 +47,12 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") static int acf_vmcount_exec(struct ast_channel *chan, const char *cmd, char *argsstr, char *buf, size_t len) { - struct ast_module_user *u; char *context; AST_DECLARE_APP_ARGS(args, AST_APP_ARG(vmbox); AST_APP_ARG(folder); ); - u = ast_module_user_add(chan); - buf[0] = '\0'; AST_STANDARD_APP_ARGS(args, argsstr); @@ -72,8 +69,6 @@ static int acf_vmcount_exec(struct ast_channel *chan, const char *cmd, char *arg } snprintf(buf, len, "%d", ast_app_messagecount(context, args.vmbox, args.folder)); - - ast_module_user_remove(u); return 0; } |