diff options
Diffstat (limited to 'apps/app_macro.c')
-rw-r--r-- | apps/app_macro.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/apps/app_macro.c b/apps/app_macro.c index 63cf46474..a011dc65d 100644 --- a/apps/app_macro.c +++ b/apps/app_macro.c @@ -307,9 +307,7 @@ static int macroif_exec(struct ast_channel *chan, void *data) LOCAL_USER_ADD(u); - expr = ast_strdupa(data); - if (!expr) { - ast_log(LOG_ERROR, "Out of Memory!\n"); + if (!(expr = ast_strdupa(data))) { LOCAL_USER_REMOVE(u); return -1; } |