dect
/
asterisk
Archived
13
0
Fork 0

fix the check to usecache. Bug #731

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1886 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
jeremy 2003-12-30 10:07:55 +00:00
parent 0dc1d6801f
commit 44d44bd08e
1 changed files with 1 additions and 1 deletions

View File

@ -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) {