Merge "Fix clang-analyzer-core.uninitialized.Branch warnings" am: 4466170559

Change-Id: Ie7d2544d835e8b6a8759636a9457ff4d34f7b80d
This commit is contained in:
Chih-hung Hsieh 2020-04-25 06:41:37 +00:00 committed by Automerger Merge Worker
commit 21ff0aa9a8

View file

@ -477,9 +477,9 @@ static int Uncrypt(const std::string& input_path, const std::string& map_file, i
return kUncryptRealpathFindError;
}
bool encryptable;
bool encrypted;
bool f2fs_fs;
bool encryptable = false;
bool encrypted = false;
bool f2fs_fs = false;
const std::string blk_dev = FindBlockDevice(path, &encryptable, &encrypted, &f2fs_fs);
if (blk_dev.empty()) {
LOG(ERROR) << "Failed to find block device for " << path;