aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2006-09-09 21:51:07 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2006-09-09 21:51:07 +0000
commit88fda7653e096169ef7dc698607720b4c594e5b6 (patch)
treeec4e47187efe60837539e9b57ef71bf42e475508 /apps
parenta3f259c971d310902bdc3300ca32e3c6ed9a36fb (diff)
In trunk, ast_fileexists now returns 0 for failure, instead of -1, as it did
in 1.2. This corrected a longstanding confusion about the return value. Unfortunately, it broke this app in the process. (Issue 7906) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@42621 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r--apps/app_record.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_record.c b/apps/app_record.c
index 810806e48..ababa2380 100644
--- a/apps/app_record.c
+++ b/apps/app_record.c
@@ -209,7 +209,7 @@ static int record_exec(struct ast_channel *chan, void *data)
ast_copy_string(tmp + tmplen, &(fname.piece[i][1]), sizeof(tmp) - tmplen);
}
count++;
- } while ( ast_fileexists(tmp, ext, chan->language) != -1 );
+ } while (ast_fileexists(tmp, ext, chan->language) > 0);
pbx_builtin_setvar_helper(chan, "RECORDED_FILE", tmp);
} else
strncpy(tmp, filename, sizeof(tmp)-1);