aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_festival.c
diff options
context:
space:
mode:
authorjeremy <jeremy@f38db490-d61c-443f-a65b-d21fe96a405b>2003-12-30 10:07:55 +0000
committerjeremy <jeremy@f38db490-d61c-443f-a65b-d21fe96a405b>2003-12-30 10:07:55 +0000
commit44d44bd08e9f0109c5e8ebb1171f02c2ba659925 (patch)
tree252087a84faa8d194ede3f8877d7f6800ea2c2b6 /apps/app_festival.c
parent0dc1d6801f0e00a6aa23e211f49504600b049610 (diff)
fix the check to usecache. Bug #731
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1886 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_festival.c')
-rwxr-xr-xapps/app_festival.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_festival.c b/apps/app_festival.c
index e4e1af746..0cbe48b57 100755
--- a/apps/app_festival.c
+++ b/apps/app_festival.c
@@ -342,7 +342,7 @@ static int festival_exec(struct ast_channel *chan, void *vdata)
}
readcache=0;
writecache=0;
- if (strlen(cachedir)+strlen(MD5Hex)+1<=MAXFESTLEN && (usecache==1)) {
+ if (strlen(cachedir)+strlen(MD5Hex)+1<=MAXFESTLEN && (usecache==-1)) {
sprintf(cachefile,"%s/%s",cachedir,MD5Hex);
fdesc=open(cachefile,O_RDWR);
if (fdesc==-1) {