diff options
Diffstat (limited to 'apps/app_hasnewvoicemail.c')
-rw-r--r-- | apps/app_hasnewvoicemail.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/apps/app_hasnewvoicemail.c b/apps/app_hasnewvoicemail.c index f21bd7ae6..2bc730e10 100644 --- a/apps/app_hasnewvoicemail.c +++ b/apps/app_hasnewvoicemail.c @@ -126,10 +126,7 @@ static int hasvoicemail_exec(struct ast_channel *chan, void *data) LOCAL_USER_ADD(u); - if (!(input = ast_strdupa(data))) { - LOCAL_USER_REMOVE(u); - return -1; - } + input = ast_strdupa(data); AST_STANDARD_APP_ARGS(args, input); |