return from function in error path.

2008-02-20  Benjamin Otte  <otte@gnome.org>

        * gfile.c: (g_file_mount_mountable):
	return from function in error path.

svn path=/trunk/; revision=6544
This commit is contained in:
Benjamin Otte 2008-02-20 18:45:18 +00:00 committed by Benjamin Otte
parent 87d23f18ec
commit ea6cf346d6
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2008-02-20 Benjamin Otte <otte@gnome.org>
* gfile.c: (g_file_mount_mountable):
return from function in error path.
2008-02-18 Sylvain Pasche <sylvain.pasche@gmail.com>
* gfile.h:

View File

@ -3308,13 +3308,15 @@ g_file_mount_mountable (GFile *file,
iface = G_FILE_GET_IFACE (file);
if (iface->mount_mountable == NULL)
if (iface->mount_mountable == NULL) {
g_simple_async_report_error_in_idle (G_OBJECT (file),
callback,
user_data,
G_IO_ERROR,
G_IO_ERROR_NOT_SUPPORTED,
_("Operation not supported"));
return;
}
(* iface->mount_mountable) (file,
flags,