Correctly initialize mFuseMounted.
Wasn't done before.
Bug: 137890172
Test: builds
Change-Id: I413505fae23031a2da71086cbfd85e0b1aec459c
diff --git a/model/EmulatedVolume.cpp b/model/EmulatedVolume.cpp
index 7fbfcec..b42bd49 100644
--- a/model/EmulatedVolume.cpp
+++ b/model/EmulatedVolume.cpp
@@ -47,6 +47,7 @@
setId(StringPrintf("emulated;%u", userId));
mRawPath = rawPath;
mLabel = "emulated";
+ mFuseMounted = false;
}
EmulatedVolume::EmulatedVolume(const std::string& rawPath, dev_t device, const std::string& fsUuid,
diff --git a/model/PublicVolume.cpp b/model/PublicVolume.cpp
index 3b5e6f0..b9164f5 100644
--- a/model/PublicVolume.cpp
+++ b/model/PublicVolume.cpp
@@ -50,6 +50,7 @@
PublicVolume::PublicVolume(dev_t device) : VolumeBase(Type::kPublic), mDevice(device) {
setId(StringPrintf("public:%u,%u", major(device), minor(device)));
mDevPath = StringPrintf("/dev/block/vold/%s", getId().c_str());
+ mFuseMounted = false;
}
PublicVolume::~PublicVolume() {}