[gvfs/gnome-3-14] mtp: fix query_fs_info crash when file not found



commit 38f2ea9e5713f0660337720a4ab993d1798b6ba8
Author: Ondrej Holy <oholy redhat com>
Date:   Mon Jan 26 14:38:20 2015 +0100

    mtp: fix query_fs_info crash when file not found
    
    The function isn't returned after g_vfs_job_failed_literal, therefore
    g_vfs_job_succeeded is executed and it fails on assert.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=743580

 daemon/gvfsbackendmtp.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/daemon/gvfsbackendmtp.c b/daemon/gvfsbackendmtp.c
index 5f482ff..57f6549 100644
--- a/daemon/gvfsbackendmtp.c
+++ b/daemon/gvfsbackendmtp.c
@@ -1456,6 +1456,7 @@ do_query_fs_info (GVfsBackend *backend,
       g_vfs_job_failed_literal (G_VFS_JOB (job),
                                 G_IO_ERROR, G_IO_ERROR_NOT_FOUND,
                                 _("File not found"));
+      goto exit;
     }
 
     LIBMTP_devicestorage_t *storage;


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