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

Commit bea81911 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Fix: null name is added when using android_set_process_profiles" am:...

Merge "Fix: null name is added when using android_set_process_profiles" am: 2d0decdc am: 0c869f2b

Original change: https://android-review.googlesource.com/c/platform/system/core/+/2068869



Change-Id: I8ba4346e6919a7fb5b473bdb94f536c1b4fa331a
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents f22bcae2 0c869f2b
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -166,7 +166,8 @@ bool SetTaskProfiles(int tid, const std::vector<std::string>& profiles, bool use
// https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3574427/5/src/linux/android.rs#12
extern "C" bool android_set_process_profiles(uid_t uid, pid_t pid, size_t num_profiles,
                                             const char* profiles[]) {
    std::vector<std::string> profiles_(num_profiles);
    std::vector<std::string> profiles_;
    profiles_.reserve(num_profiles);
    for (size_t i = 0; i < num_profiles; i++) {
        profiles_.emplace_back(profiles[i]);
    }