aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_festival.c
diff options
context:
space:
mode:
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) {