mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-01 03:04:19 +00:00
Fixes unitialized variable use warning introduced by addition of mixmonitor forward to vm
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8-digiumphones@358725 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -424,7 +424,7 @@ static void *mixmonitor_thread(void *obj)
|
||||
struct mixmonitor *mixmonitor = obj;
|
||||
struct ast_filestream **fs = NULL;
|
||||
unsigned int oflags;
|
||||
char *ext;
|
||||
char *ext = "";
|
||||
char *last_slash;
|
||||
int errflag = 0;
|
||||
|
||||
@@ -507,8 +507,13 @@ static void *mixmonitor_thread(void *obj)
|
||||
ast_verb(2, "End MixMonitor Recording %s\n", mixmonitor->name);
|
||||
|
||||
if (!AST_LIST_EMPTY(&mixmonitor->recipient_list)) {
|
||||
if (ast_strlen_zero(ext)) {
|
||||
ast_log(LOG_ERROR, "No file extension set for Mixmonitor %s. Skipping copy to voicemail.\n",
|
||||
mixmonitor -> name);
|
||||
} else {
|
||||
ast_verb(3, "Copying recordings for Mixmonitor %s to voicemail recipients\n", mixmonitor->name);
|
||||
copy_to_voicemail(mixmonitor, ext);
|
||||
}
|
||||
} else {
|
||||
ast_debug(3, "No recipients to forward monitor to, moving on.\n");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user