}
} else {
+ /* Coverity - This uninit_use should be ignored since this macro initializes the flags */
ast_clear_flag(&flags, AST_FLAGS_ALL);
}
int res;
char *mygroup = NULL;
+ /* Coverity - This uninit_use should be ignored since this macro initializes the flags */
ast_clear_flag(&flags, AST_FLAGS_ALL);
if (!ast_strlen_zero(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);
if (!ast_strlen_zero(args.options)) {
ast_app_parse_options(page_opts, &flags, opts, args.options);
+ } else {
+ /* opts must be initialized if there wasn't an options string. */
+ for (i = 0; i < OPT_ARG_ARRAY_SIZE; i++) {
+ opts[i] = NULL;
+ }
}
if (!ast_strlen_zero(args.timeout)) {
static int cdr_read(struct ast_channel *chan, const char *cmd, char *parse,
char *buf, size_t len)
{
- char *ret;
+ char *ret = NULL;
struct ast_flags flags = { 0 };
struct ast_cdr *cdr;
AST_DECLARE_APP_ARGS(args,
struct ast_flags features;
struct ast_call_feature feature;
if (sense == FEATURE_SENSE_CHAN) {
+ /* Coverity - This uninit_use should be ignored since this macro initializes the flags */
ast_copy_flags(&features, &(config->features_caller), AST_FLAGS_ALL);
}
else {
+ /* Coverity - This uninit_use should be ignored since this macro initializes the flags */
ast_copy_flags(&features, &(config->features_callee), AST_FLAGS_ALL);
}