From 55f7586e6aad95bd871d21c62745d5f5b5afa973 Mon Sep 17 00:00:00 2001 From: Peter Hatina Date: Mon, 25 Nov 2013 20:22:46 +0100 Subject: [PATCH] fix set mount, when LIBUSB1 not present --- src/simple-mtpfs-fuse.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/simple-mtpfs-fuse.cpp b/src/simple-mtpfs-fuse.cpp index dccf9cd..e2f31b9 100644 --- a/src/simple-mtpfs-fuse.cpp +++ b/src/simple-mtpfs-fuse.cpp @@ -310,10 +310,12 @@ bool SMTPFileSystem::parseOptions(int argc, char **argv) return false; } -#ifdef HAVE_LIBUSB1 - if (m_options.m_mount_point) - fuse_opt_add_arg(&m_args, m_options.m_mount_point); -#endif // HAVE_LIBUSB1 + if (!m_options.m_mount_point) { + m_options.m_good = false; + return false; + } + + fuse_opt_add_arg(&m_args, m_options.m_mount_point); fuse_opt_add_arg(&m_args, "-s"); if (m_options.m_verbose) {