mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-02 19:16:15 +00:00
fix the check to usecache. Bug #731
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1886 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user