aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_readfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/app_readfile.c')
-rw-r--r--apps/app_readfile.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/apps/app_readfile.c b/apps/app_readfile.c
index 528fe8237..33935486b 100644
--- a/apps/app_readfile.c
+++ b/apps/app_readfile.c
@@ -74,11 +74,6 @@ static int readfile_exec(struct ast_channel *chan, void *data)
LOCAL_USER_ADD(u);
s = ast_strdupa(data);
- if (!s) {
- ast_log(LOG_ERROR, "Out of memory\n");
- LOCAL_USER_REMOVE(u);
- return -1;
- }
varname = strsep(&s, "=");
file = strsep(&s, "|");