From: Mike Bradeen Date: Mon, 26 Jun 2023 15:40:03 +0000 (-0600) Subject: app_voicemail: fix imap compilation errors X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2711fba4b937b3dbfc20a9a567409c38da517075;p=thirdparty%2Fasterisk.git app_voicemail: fix imap compilation errors Fixes two compilation errors in app_voicemail_imap, one due to an unsed variable and one due to a new variable added in the incorrect location in _163. Resolves: #174 --- diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 5564181f14..caab934e1a 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -2592,13 +2592,13 @@ static int messagecount(const char *mailbox_id, const char *folder) { char *context; char *mailbox; + int count; if (ast_strlen_zero(mailbox_id) || separate_mailbox(ast_strdupa(mailbox_id), &mailbox, &context)) { return 0; } - int count; if (ast_strlen_zero(folder) || !strcmp(folder, "INBOX")) { count = __messagecount(context, mailbox, "INBOX") + __messagecount(context, mailbox, "Urgent"); } else { @@ -6197,7 +6197,6 @@ static int msg_create_from_file(struct ast_vm_recording_data *recdata) #ifdef IMAP_STORAGE struct vm_state *vms = NULL; char ext_context[256] = ""; - char *fmt = ast_strdupa(recdata->recording_ext); int newmsgs = 0; int oldmsgs = 0; #endif