aboutsummaryrefslogtreecommitdiffstats
path: root/funcs/func_enum.c
diff options
context:
space:
mode:
Diffstat (limited to 'funcs/func_enum.c')
-rw-r--r--funcs/func_enum.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/funcs/func_enum.c b/funcs/func_enum.c
index 5f1b01d56..87f321edc 100644
--- a/funcs/func_enum.c
+++ b/funcs/func_enum.c
@@ -141,14 +141,14 @@ static int function_txtcidname(struct ast_channel *chan, char *cmd,
buf[0] = '\0';
- LOCAL_USER_ADD(u);
if (ast_strlen_zero(data)) {
ast_log(LOG_WARNING, "TXTCIDNAME requires an argument (number)\n");
- LOCAL_USER_REMOVE(u);
return -1;
}
+ LOCAL_USER_ADD(u);
+
res = ast_get_txt(chan, data, dest, sizeof(dest), tech, sizeof(tech), txt,
sizeof(txt));