projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
58c1a92
)
fix the check to usecache. Bug #731
author
Jeremy McNamara
<jj@nufone.net>
Tue, 30 Dec 2003 10:07:55 +0000
(10:07 +0000)
committer
Jeremy McNamara
<jj@nufone.net>
Tue, 30 Dec 2003 10:07:55 +0000
(10:07 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1886
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
apps/app_festival.c
patch
|
blob
|
history
diff --git
a/apps/app_festival.c
b/apps/app_festival.c
index
e4e1af7
..
0cbe48b
100755
(executable)
--- 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) {