From c3543c9ac93491684f0454f1a96389988ec3a2ed Mon Sep 17 00:00:00 2001
From: Greg Kaiser <gkaiser@google.com>
Date: Fri, 9 Apr 2021 07:10:44 -0700
Subject: [PATCH] vc: Initial field in constructor

The 'flags' field was our only field not initialized in our
constructor.  To assure consistent behavior, we initialize it
here.

Test: TreeHugger
Change-Id: I92c94eb5a995b5980d635f2c6d1cb12bf28ef4ca
---
 system/bta/vc/devices.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/system/bta/vc/devices.h b/system/bta/vc/devices.h
index 7a496ad8f1e..b406329ce34 100644
--- a/system/bta/vc/devices.h
+++ b/system/bta/vc/devices.h
@@ -68,6 +68,7 @@ class VolumeControlDevice {
         volume(0),
         change_counter(0),
         mute(false),
+        flags(0),
         connection_id(GATT_INVALID_CONN_ID),
         volume_state_handle(0),
         volume_state_ccc_handle(0),
-- 
GitLab