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

Commit 45380e4a authored by Dmitrii Merkurev's avatar Dmitrii Merkurev Committed by Gerrit Code Review
Browse files

Merge "fastboot: Use copy constructor to copy fastboot match callback"

parents 96ea7b9c b5b8276d
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -456,8 +456,7 @@ static int init_usb(ifc_match_func callback, std::unique_ptr<usb_handle>* handle
        }

        if (h.success) {
            handle->reset(new usb_handle);
            memcpy(handle->get(), &h, sizeof(usb_handle));
            handle->reset(new usb_handle(h));
            ret = 0;
            break;
        }