Merge "libsnapshot: Fix typo in nullptr check" am: 17438477cb
am: eea945690a
Change-Id: If122146d062cbfdeeea7c3a4d4358ca57ad1ce4c
diff --git a/fs_mgr/libsnapshot/partition_cow_creator.cpp b/fs_mgr/libsnapshot/partition_cow_creator.cpp
index 44d8860..3163e61 100644
--- a/fs_mgr/libsnapshot/partition_cow_creator.cpp
+++ b/fs_mgr/libsnapshot/partition_cow_creator.cpp
@@ -41,7 +41,7 @@
// Convert target_extent and existing_extent to linear extents. Zero extents
// doesn't matter and doesn't result in any intersection.
auto existing_linear_extent = existing_extent->AsLinearExtent();
- if (!existing_extent) return nullptr;
+ if (!existing_linear_extent) return nullptr;
auto target_linear_extent = target_extent->AsLinearExtent();
if (!target_linear_extent) return nullptr;