From 5d12e6ffa042f7f25c24a42b25ea3de790698362 Mon Sep 17 00:00:00 2001 From: Hai Shang Date: Mon, 31 Oct 2022 10:14:34 -0700 Subject: [PATCH] Adding default value to fix the msan issue in the types test PiperOrigin-RevId: 485083607 --- presence/scan_request.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/presence/scan_request.h b/presence/scan_request.h index 257221b0..af653793 100644 --- a/presence/scan_request.h +++ b/presence/scan_request.h @@ -121,11 +121,11 @@ struct ScanRequest { scan_filters; // Whether to use BLE in the scan. - bool use_ble; + bool use_ble = false; - ScanType scan_type; - PowerMode power_mode; - bool scan_only_when_screen_on; + ScanType scan_type = ScanType::kUnspecifiedScan; + PowerMode power_mode = PowerMode::kNoPower; + bool scan_only_when_screen_on = false; }; inline bool operator==(const ScanRequest& a, const ScanRequest& b) {