[gvfs] MTP: Fix compilation warning.



commit 1371818a79746fe1a40644f7d1b93d9c4c80187f
Author: Philip Langdale <philipl overt org>
Date:   Sat Nov 30 10:12:05 2013 -0800

    MTP: Fix compilation warning.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=715119

 daemon/gvfsbackendmtp.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/daemon/gvfsbackendmtp.c b/daemon/gvfsbackendmtp.c
index c8548e0..e1b96fa 100644
--- a/daemon/gvfsbackendmtp.c
+++ b/daemon/gvfsbackendmtp.c
@@ -1183,14 +1183,14 @@ do_query_info (GVfsBackend *backend,
   DEBUG ("(I) do_query_info (filename = %s) ", filename);
   g_mutex_lock (&G_VFS_BACKEND_MTP (backend)->mutex);
 
-  FAIL_DURING_UNMOUNT();
-
   gchar **elements = g_strsplit_set (filename, "/", -1);
   unsigned int ne = g_strv_length (elements);
 
   LIBMTP_mtpdevice_t *device;
   device = G_VFS_BACKEND_MTP (backend)->device;
 
+  FAIL_DURING_UNMOUNT();
+
   if (ne == 2 && elements[1][0] == '\0') {
     get_device_info (G_VFS_BACKEND_MTP (backend), info);
   } else if (ne < 3) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]