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

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

Merge "Fix fdsan error" am: 9e46d1c9 am: f06aef87

am: 5e329055

Change-Id: I5ae1b78bb21b3a84b7fc3388d104d6f345207827
parents 1389b26e 5e329055
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;