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

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

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

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

Change-Id: I474fb94019cf8894f8a7a59b12b5c69dab8747b5
parents 50f5e4e7 fcd5c57c
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];