diff options
Diffstat (limited to 'apps/app_externalivr.c')
-rw-r--r-- | apps/app_externalivr.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/apps/app_externalivr.c b/apps/app_externalivr.c index 10232044d..37359c690 100644 --- a/apps/app_externalivr.c +++ b/apps/app_externalivr.c @@ -271,9 +271,7 @@ static int app_exec(struct ast_channel *chan, void *data) goto exit; } - buf = ast_strdupa(data); - if (!buf) { - ast_log(LOG_ERROR, "Out of memory!\n"); + if (!(buf = ast_strdupa(data))) { LOCAL_USER_REMOVE(u); return -1; } |