From: Jason Parker Date: Mon, 31 Mar 2008 21:48:05 +0000 (+0000) Subject: Fix a silly infinite loop when choosing an invalid option. X-Git-Tag: 1.4.20-rc1~106 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9ae694024ee7a1f222bcea60b61519396ba4b618;p=thirdparty%2Fasterisk.git 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/branches/1.4@112068 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 0f6df8f5bc..15d4bb9fc3 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -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");