gfile: add g_return_if_fail to g_file_make_directory_with_parents()
authorPaolo Borelli <pborelli@gnome.org>
Tue, 15 May 2012 15:38:44 +0000 (17:38 +0200)
committerPaolo Borelli <pborelli@gnome.org>
Tue, 15 May 2012 15:39:38 +0000 (17:39 +0200)
gio/gfile.c

index ba3c95e..8406a93 100644 (file)
@@ -3404,6 +3404,8 @@ g_file_make_directory_with_parents (GFile         *file,
   GList *list = NULL, *l;
   GError *my_error = NULL;
 
+  g_return_val_if_fail (G_IS_FILE (file), FALSE);
+
   if (g_cancellable_set_error_if_cancelled (cancellable, error))
     return FALSE;