return from function in error path.
authorBenjamin Otte <otte@gnome.org>
Wed, 20 Feb 2008 18:45:18 +0000 (18:45 +0000)
committerBenjamin Otte <otte@src.gnome.org>
Wed, 20 Feb 2008 18:45:18 +0000 (18:45 +0000)
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

gio/ChangeLog
gio/gfile.c

index f3d7b1e..5705a03 100644 (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:
index 4a1ccb1..12ae8f9 100644 (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,