aboutsummaryrefslogtreecommitdiffstats
path: root/res/res_agi.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-03-28 07:08:39 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-03-28 07:08:39 +0000
commit622e8226c29dbdff0f426a0bee5535d527e3487b (patch)
treedb929055006405e567cdd1c69bda05b10ae370e8 /res/res_agi.c
parent03467d1b61fdf7d0cd3cb02c92722aa94edd6542 (diff)
Continue with GET_DATA if no file is there (bug #3878)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5290 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res/res_agi.c')
-rwxr-xr-xres/res_agi.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/res/res_agi.c b/res/res_agi.c
index a5537d4c7..f6daabf38 100755
--- a/res/res_agi.c
+++ b/res/res_agi.c
@@ -674,10 +674,7 @@ static int handle_getdata(struct ast_channel *chan, AGI *agi, int argc, char *ar
fdprintf(agi->fd, "200 result=-1\n");
else
fdprintf(agi->fd, "200 result=%s\n", data);
- if (res >= 0)
- return RESULT_SUCCESS;
- else
- return RESULT_FAILURE;
+ return RESULT_SUCCESS;
}
static int handle_setcontext(struct ast_channel *chan, AGI *agi, int argc, char *argv[])