diff options
author | qwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-03-31 21:48:05 +0000 |
---|---|---|
committer | qwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-03-31 21:48:05 +0000 |
commit | efc7a3c37c5bdde1f68295d651cb237d169c03e4 (patch) | |
tree | 2857773aa16886376eb4900c61e362a72c0a2d4e /apps | |
parent | c4049b5c6676e437660a85cb6f48effa666e7cd3 (diff) |
Fix a silly infinite loop when choosing an invalid option.
(closes issue #12315)
Reported by: jmls
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@112068 f38db490-d61c-443f-a65b-d21fe96a405b
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 0f6df8f5b..15d4bb9fc 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"); |