Skip to content

Commit

Permalink
Fix clang-tidy error on uninitialized variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Databean committed Dec 12, 2024
1 parent 4933461 commit 4ac6bd7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ Result<LocalInstanceGroup> LocalInstanceGroup::Deserialize(
CF_EXPECT(instance_json.isMember(kJsonInstanceId));
const std::string instance_id = instance_json[kJsonInstanceId].asString();

int id;
int id = -1;
CF_EXPECTF(android::base::ParseInt(instance_id, std::addressof(id)),
"Invalid instance ID in instance json: {}", instance_id);
auto instance = group_proto.add_instances();
Expand Down

0 comments on commit 4ac6bd7

Please sign in to comment.