[glib/glib-2-32] gfile: add g_return_if_fail to g_file_make_directory_with_parents()



commit d1f1389649890b25c44d08b6b32e9e79c395b543
Author: Paolo Borelli <pborelli gnome org>
Date:   Tue May 15 17:38:44 2012 +0200

    gfile: add g_return_if_fail to g_file_make_directory_with_parents()

 gio/gfile.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gio/gfile.c b/gio/gfile.c
index 3255bca..d29c5cf 100644
--- a/gio/gfile.c
+++ b/gio/gfile.c
@@ -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;
   



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]