build: Fix building with newer GCC.

Newer GCC is upset that the features flags are uninitialized.
Zero them out so it is less upset.

Change-Id: I05162699e1b36bce4145f58a63b47ad19c6975ac
changes/63/1763/2
Joshua Colp 10 years ago
parent cfb3aef45b
commit b59b0bb509

@ -3722,14 +3722,12 @@ static int feature_interpret(struct ast_channel *chan, struct ast_channel *peer,
char dynamic_features_buf[128];
const char *peer_dynamic_features, *chan_dynamic_features;
struct ast_flags features;
struct ast_flags features = { 0, };
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);
}

Loading…
Cancel
Save