diff options
author | Jason Parker <jparker@digium.com> | 2008-03-31 21:48:30 +0000 |
---|---|---|
committer | Jason Parker <jparker@digium.com> | 2008-03-31 21:48:30 +0000 |
commit | 4edaf043480602788dd41645f04f2c789fd7577e (patch) | |
tree | 5a53fa185c2c42c1f2fcdc2fd38cbf0ec4f2d877 /apps | |
parent | f02c11d88be7e360ab14da63b014707034591df2 (diff) |
Merged revisions 112068 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r112068 | qwell | 2008-03-31 16:48:05 -0500 (Mon, 31 Mar 2008) | 5 lines
Fix a silly infinite loop when choosing an invalid option.
(closes issue #12315)
Reported by: jmls
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@112069 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_voicemail.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 146041656..b0694b333 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -6734,6 +6734,7 @@ static int vm_options(struct ast_channel *chan, struct ast_vm_user *vmu, struct cmd = 't'; break; default: + cmd = 0; snprintf(prefile, sizeof(prefile), "%s%s/%s/temp", VM_SPOOL_DIR, vmu->context, vms->username); if (ast_fileexists(prefile, NULL, NULL)) { cmd = ast_play_and_wait(chan, "vm-tmpexists"); |