]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
build: Fix building with newer GCC. 63/1763/2
authorJoshua Colp <jcolp@digium.com>
Fri, 4 Dec 2015 14:22:08 +0000 (10:22 -0400)
committerJoshua Colp <jcolp@digium.com>
Fri, 4 Dec 2015 16:29:37 +0000 (12:29 -0400)
Newer GCC is upset that the features flags are uninitialized.
Zero them out so it is less upset.

Change-Id: I05162699e1b36bce4145f58a63b47ad19c6975ac

main/features.c

index c0f4b8d5fa5fe57aac82fc4ae0f55218d9f9ad3a..4da60bc2ab1412ace2cb28835616ff0a29735500 100644 (file)
@@ -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);
        }