From: Benjamin Otte Date: Wed, 20 Feb 2008 18:45:18 +0000 (+0000) Subject: return from function in error path. X-Git-Tag: GLIB_2_15_6~48 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ea6cf346d67236f7e5b9f9b9927d2b335342e6a7;p=platform%2Fupstream%2Fglib.git return from function in error path. 2008-02-20 Benjamin Otte * gfile.c: (g_file_mount_mountable): return from function in error path. svn path=/trunk/; revision=6544 --- diff --git a/gio/ChangeLog b/gio/ChangeLog index f3d7b1e..5705a03 100644 --- a/gio/ChangeLog +++ b/gio/ChangeLog @@ -1,3 +1,8 @@ +2008-02-20 Benjamin Otte + + * gfile.c: (g_file_mount_mountable): + return from function in error path. + 2008-02-18 Sylvain Pasche * gfile.h: diff --git a/gio/gfile.c b/gio/gfile.c index 4a1ccb1..12ae8f9 100644 --- a/gio/gfile.c +++ b/gio/gfile.c @@ -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,