Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fcd5c57c authored by Martijn Coenen's avatar Martijn Coenen Committed by Automerger Merge Worker
Browse files

Don't return a reference in FindQuotaDeviceForUuid. am: 2d5e05b4

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/13128175

Change-Id: I2cc42e6ab585ef3ba532c7e0d1959c47dca85bb1
parents 21c0c360 2d5e05b4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -35,7 +35,7 @@ std::recursive_mutex mMountsLock;
/* Map of all quota mounts from target to source */
std::unordered_map<std::string, std::string> mQuotaReverseMounts;

std::string& FindQuotaDeviceForUuid(const std::string& uuid) {
std::string FindQuotaDeviceForUuid(const std::string& uuid) {
    std::lock_guard<std::recursive_mutex> lock(mMountsLock);
    auto path = create_data_path(uuid.empty() ? nullptr : uuid.c_str());
    return mQuotaReverseMounts[path];