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

Commit f06aef87 authored by Mathieu Chartier's avatar Mathieu Chartier Committed by android-build-merger
Browse files

Merge "Fix fdsan error"

am: 9e46d1c9

Change-Id: Icdb178383be78ab4f2067de4e9be4b1260a4df07
parents 3b7065a7 9e46d1c9
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -43,6 +43,7 @@
#define DEBUG_XATTRS 0

using android::base::EndsWith;
using android::base::Fdopendir;
using android::base::StringPrintf;
using android::base::unique_fd;

@@ -1036,7 +1037,7 @@ static bool collect_profiles(DIR* d,
                continue;
            }

            DIR* subdir = fdopendir(subdir_fd);
            DIR* subdir = Fdopendir(std::move(subdir_fd));
            if (subdir == nullptr) {
                PLOG(WARNING) << "Could not open dir path " << local_path;
                result = false;