[gvfs/gnome-3-12] mtp: fix query_fs_info crash when file not found
- From: Ondrej Holy <oholy src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs/gnome-3-12] mtp: fix query_fs_info crash when file not found
- Date: Tue, 27 Jan 2015 16:01:05 +0000 (UTC)
commit 595baefbe003200f79bfe3946b3fdf0cf0ee4093
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 a7848e8..267d470 100644
--- a/daemon/gvfsbackendmtp.c
+++ b/daemon/gvfsbackendmtp.c
@@ -1270,6 +1270,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]