mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-18 15:49:56 +00:00
Coverity Report: Fix issues for error type UNINIT in Core supported modules
(issue ASTERISK-19652) Reported by: Matt Jordan Review: https://reviewboard.asterisk.org/r/1909/ ........ Merged revisions 366048 from http://svn.asterisk.org/svn/asterisk/branches/1.8 ........ Merged revisions 366049 from http://svn.asterisk.org/svn/asterisk/branches/10 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@366051 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -181,8 +181,13 @@ static int disa_exec(struct ast_channel *chan, const char *data)
|
||||
args.context = "disa";
|
||||
if (ast_strlen_zero(args.mailbox))
|
||||
args.mailbox = "";
|
||||
if (!ast_strlen_zero(args.options))
|
||||
if (!ast_strlen_zero(args.options)) {
|
||||
ast_app_parse_options(app_opts, &flags, NULL, args.options);
|
||||
} else {
|
||||
/* Coverity - This uninit_use should be ignored since this macro initializes the flags */
|
||||
ast_clear_flag(&flags, AST_FLAGS_ALL);
|
||||
}
|
||||
|
||||
|
||||
ast_debug(1, "Mailbox: %s\n",args.mailbox);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user