commit | 9f4fc0f7a445064350d37abdd5416a8730ec78ed | [log] [tgz] |
---|---|---|
author | Chih-Hung Hsieh <chh@google.com> | Thu Dec 22 23:43:44 2022 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Thu Dec 22 23:43:44 2022 +0000 |
tree | a17a2fdbf4bd40549192815d49858ffa1e83663e | |
parent | aa806fb19be1a84fa6ac5ca7e89bae064cc71324 [diff] | |
parent | 6e4f345e8abac6f6601c99919ef0c5d79e39fd21 [diff] |
Suppress uninitialized value warnings. am: 6e4f345e8a Original change: https://android-review.googlesource.com/c/platform/system/update_engine/+/2365953 Change-Id: I4b5ef6b58229f0a43db7f46de14e877957d52ac2 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
diff --git a/aosp/update_attempter_android.cc b/aosp/update_attempter_android.cc index eda82e2..617edab 100644 --- a/aosp/update_attempter_android.cc +++ b/aosp/update_attempter_android.cc
@@ -324,6 +324,8 @@ } else { #ifdef _UE_SIDELOAD LOG(FATAL) << "Unsupported sideload URI: " << payload_url; + return false; // NOLINT, unreached but analyzer might not know. + // Suppress warnings about null 'fetcher' after this. #else LibcurlHttpFetcher* libcurl_fetcher = new LibcurlHttpFetcher(hardware_); if (!headers[kPayloadDownloadRetry].empty()) {