A rules object may be empty

This commit is contained in:
Johan Wikman 2017-03-20 11:20:09 +02:00
parent df09dd2043
commit b81c86f228

View File

@ -1886,6 +1886,10 @@ static bool cache_rules_parse_json(CACHE_RULES *self, json_t *root)
MXS_ERROR("The cache rules object contains a `%s` key, but it is not an array.", KEY_USE);
}
}
else
{
parsed = true;
}
}
return parsed;