diff options
Diffstat (limited to 'apps/app_sendtext.c')
-rw-r--r-- | apps/app_sendtext.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/apps/app_sendtext.c b/apps/app_sendtext.c index 4ddbc1c65..fea5ebaf9 100644 --- a/apps/app_sendtext.c +++ b/apps/app_sendtext.c @@ -88,9 +88,7 @@ static int sendtext_exec(struct ast_channel *chan, void *data) LOCAL_USER_REMOVE(u); return -1; } else { - parse = ast_strdupa(data); - if (!parse) { - ast_log(LOG_ERROR, "Out of memory!\n"); + if (!(parse = ast_strdupa(data))) { LOCAL_USER_REMOVE(u); return -1; } |