From 03478f284034ac8b13a41a9cfaaa66eee47d28c2 Mon Sep 17 00:00:00 2001 From: Chih-Hung Hsieh Date: Tue, 20 Dec 2022 13:27:31 -0800 Subject: Fix uninitialized value warnings. Bug: 263274255 Test: presubmit; make tidy-system-gsid_subset Change-Id: Ied2f65634df449a92bb99526d109895dac6a541b --- gsi_service.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gsi_service.cpp b/gsi_service.cpp index 75f9286..2caa445 100644 --- a/gsi_service.cpp +++ b/gsi_service.cpp @@ -343,7 +343,7 @@ binder::Status GsiService::isGsiEnabled(bool* _aidl_return) { } binder::Status GsiService::removeGsiAsync(const sp& resultCallback) { - bool result; + bool result = false; auto status = removeGsi(&result); if (!status.isOk()) { LOG(ERROR) << "Could not removeGsi: " << status.exceptionMessage().string(); -- cgit v1.2.3