fix an uninitialized variable
[asterisk/asterisk.git] / apps / app_voicemail.c
index f06ff02..e3f7391 100644 (file)
@@ -5135,6 +5135,7 @@ static int forward_message(struct ast_channel *chan, char *context, struct vm_st
        dir = vms->curdir;
        curmsg = vms->curmsg;
 
+       tmptxtfile[0] = '\0';
        while (!res && !valid_extensions) {
                int use_directory = 0;
                if (ast_test_flag((&globalflags), VM_DIRECFORWARD)) {