[glib] gfile: add g_return_if_fail to g_file_make_directory_with_parents()



commit 2a4235d0f3fe3b3fb007385ee59082c0987158ce
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 ba3c95e..8406a93 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]