diff options
Diffstat (limited to 'mtp/ffs/MtpDevHandle.cpp')
-rw-r--r-- | mtp/ffs/MtpDevHandle.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mtp/ffs/MtpDevHandle.cpp b/mtp/ffs/MtpDevHandle.cpp index d6a8b820d..e22ba55b2 100644 --- a/mtp/ffs/MtpDevHandle.cpp +++ b/mtp/ffs/MtpDevHandle.cpp @@ -33,8 +33,9 @@ constexpr char mtp_dev_path[] = "/dev/mtp_usb"; -MtpDevHandle::MtpDevHandle() - : mFd(-1) {}; +MtpDevHandle::MtpDevHandle(int controlFd) { + mFd.reset(controlFd); +} MtpDevHandle::~MtpDevHandle() {} |