From 5c081803fce6c3bb9566331575c534d8c12a686d Mon Sep 17 00:00:00 2001 From: Stephen Hines Date: Wed, 8 May 2019 17:14:34 -0700 Subject: [PATCH] Ensure avrule is initialized. Bug: http://b/131390872 Test: Builds with -Wconditional-initialize Change-Id: I14b9316ca392f299745342d61e4fd45ab8e9e307 --- tools/sepolicy-analyze/neverallow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/sepolicy-analyze/neverallow.c b/tools/sepolicy-analyze/neverallow.c index 020967886..a55a92171 100644 --- a/tools/sepolicy-analyze/neverallow.c +++ b/tools/sepolicy-analyze/neverallow.c @@ -378,7 +378,7 @@ static int check_neverallows(policydb_t *policydb, char *text, char *end) { const char *keyword = "neverallow"; size_t keyword_size = strlen(keyword), len; - struct avrule *neverallows = NULL, *avrule; + struct avrule *neverallows = NULL, *avrule = NULL; char *p, *start; int result;