Merged revisions 23988 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r23988 | bweschke | 2006-05-01 14:34:29 -0500 (Mon, 01 May 2006) | 3 lines Correct a condition from the prior patch that could happen in rare circumstances and cause a core dump. Thanks Qwell! ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@23989 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
parent
649052f980
commit
7f0cc4786b
1 changed files with 1 additions and 1 deletions
|
@ -2568,7 +2568,7 @@ static int leave_voicemail(struct ast_channel *chan, char *ext, struct leave_vm_
|
||||||
if (txt && EXISTS(dir,msgnum,fn,chan->language)) {
|
if (txt && EXISTS(dir,msgnum,fn,chan->language)) {
|
||||||
fclose(txt);
|
fclose(txt);
|
||||||
rename(tmptxtfile, txtfile);
|
rename(tmptxtfile, txtfile);
|
||||||
} else if (!EXISTS(dir,msgnum,fn,chan->language)) {
|
} else if (txt && !EXISTS(dir,msgnum,fn,chan->language)) {
|
||||||
if (option_debug)
|
if (option_debug)
|
||||||
ast_log(LOG_DEBUG, "The recorded media file is gone, so we should remove the .txt file too!\n");
|
ast_log(LOG_DEBUG, "The recorded media file is gone, so we should remove the .txt file too!\n");
|
||||||
fclose(txt);
|
fclose(txt);
|
||||||
|
|
Loading…
Reference in a new issue