aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_zapras.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/app_zapras.c')
-rw-r--r--apps/app_zapras.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/apps/app_zapras.c b/apps/app_zapras.c
index 94285cb45..e884f64cc 100644
--- a/apps/app_zapras.c
+++ b/apps/app_zapras.c
@@ -209,9 +209,7 @@ static int zapras_exec(struct ast_channel *chan, void *data)
LOCAL_USER_ADD(u);
- args = ast_strdupa(data);
- if (!args) {
- ast_log(LOG_ERROR, "Out of memory\n");
+ if (!(args = ast_strdupa(data))) {
LOCAL_USER_REMOVE(u);
return -1;
}