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

Commit 2442e644 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "adb: Avoid a couple std::string constructions"

parents 34ae0c58 edfec966
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1097,14 +1097,14 @@ static bool remote_build_list(SyncConnection& sc, std::vector<copyinfo>* file_li
        }
    };

    if (!sync_ls(sc, rpath.c_str(), callback)) {
    if (!sync_ls(sc, rpath, callback)) {
        return false;
    }

    // Check each symlink we found to see whether it's a file or directory.
    for (copyinfo& link_ci : linklist) {
        struct stat st;
        if (!sync_stat_fallback(sc, link_ci.rpath.c_str(), &st)) {
        if (!sync_stat_fallback(sc, link_ci.rpath, &st)) {
            sc.Warning("stat failed for path %s: %s", link_ci.rpath.c_str(), strerror(errno));
            continue;
        }