[gvfs/gnome-3-10] MTP: Fix compilation warning.



commit f41ae46501ef0e5516412d17556aae9075656f11
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 219ecca..3b5e208 100644
--- a/daemon/gvfsbackendmtp.c
+++ b/daemon/gvfsbackendmtp.c
@@ -1176,14 +1176,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]