diff options
author | bweschke <bweschke@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-05-01 19:35:53 +0000 |
---|---|---|
committer | bweschke <bweschke@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-05-01 19:35:53 +0000 |
commit | 81e68e05cd6b49e917611a76cae37131f93849aa (patch) | |
tree | 07a40531a529ca3922ca2b6569ce58d043433e4f | |
parent | 9520d1f304d2046cf984ee2432c901e3f4328c43 (diff) |
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: http://svn.digium.com/svn/asterisk/trunk@23989 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | apps/app_voicemail.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 724ba5d16..7340b7c47 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -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)) { fclose(txt); rename(tmptxtfile, txtfile); - } else if (!EXISTS(dir,msgnum,fn,chan->language)) { + } else if (txt && !EXISTS(dir,msgnum,fn,chan->language)) { if (option_debug) ast_log(LOG_DEBUG, "The recorded media file is gone, so we should remove the .txt file too!\n"); fclose(txt); |