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

Commit 9e46d1c9 authored by Mathieu Chartier's avatar Mathieu Chartier Committed by Gerrit Code Review
Browse files

Merge "Fix fdsan error"

parents ad253001 89883e3f
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;