Ensure avrule is initialized.

Bug: http://b/131390872
Test: Builds with -Wconditional-initialize
Change-Id: I14b9316ca392f299745342d61e4fd45ab8e9e307
This commit is contained in:
Stephen Hines 2019-05-08 17:14:34 -07:00
parent 5a883148a0
commit 5c081803fc

View File

@ -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;