]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fix a silly infinite loop when choosing an invalid option.
authorJason Parker <jparker@digium.com>
Mon, 31 Mar 2008 21:48:05 +0000 (21:48 +0000)
committerJason Parker <jparker@digium.com>
Mon, 31 Mar 2008 21:48:05 +0000 (21:48 +0000)
(closes issue #12315)
Reported by: jmls

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@112068 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_voicemail.c

index 0f6df8f5bc6cb849ae1ec6f0b246fed7d3960444..15d4bb9fc3811a10e084c5a75a3a3b74526e8c17 100644 (file)
@@ -6130,6 +6130,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");