summaryrefslogtreecommitdiff
path: root/apps/app_disa.c
diff options
context:
space:
mode:
authorJonathan Rose <jrose@digium.com>2012-05-10 15:57:26 +0000
committerJonathan Rose <jrose@digium.com>2012-05-10 15:57:26 +0000
commitd1e7473649afce5db9ef9e50efd56bb27c6e8f62 (patch)
treec719aaf6ed7a659497b1b0dfc109a25e9e0a45fe /apps/app_disa.c
parent6f6af213833e0c4bcc33cc4de2d6b457d259687c (diff)
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
Diffstat (limited to 'apps/app_disa.c')
-rw-r--r--apps/app_disa.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/app_disa.c b/apps/app_disa.c
index b38da7654..c43370c95 100644
--- a/apps/app_disa.c
+++ b/apps/app_disa.c
@@ -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);