aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_record.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/app_record.c')
-rw-r--r--apps/app_record.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/apps/app_record.c b/apps/app_record.c
index 38d6437e7..3a2a0f37c 100644
--- a/apps/app_record.c
+++ b/apps/app_record.c
@@ -113,10 +113,7 @@ static int record_exec(struct ast_channel *chan, void *data)
LOCAL_USER_ADD(u);
/* Yay for strsep being easy */
- if (!(vdata = ast_strdupa(data))) {
- LOCAL_USER_REMOVE(u);
- return -1;
- }
+ vdata = ast_strdupa(data);
p = vdata;
filename = strsep(&p, "|");