[glib/glib-2-32] gio: The tmpl parameter to g_file_new_tmp can be NULL



commit 200b390d83d160ec95f8305ac7362e2a302ba1c9
Author: Debarshi Ray <debarshir gnome org>
Date:   Thu May 17 06:43:54 2012 +0200

    gio: The tmpl parameter to g_file_new_tmp can be NULL
    
    Fixes: https://bugzilla.gnome.org/676208

 gio/gfile.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/gio/gfile.c b/gio/gfile.c
index 52f9add..465c963 100644
--- a/gio/gfile.c
+++ b/gio/gfile.c
@@ -5926,7 +5926,6 @@ g_file_new_tmp (const char     *tmpl,
   GFile *file;
   GFileOutputStream *output;
 
-  g_return_val_if_fail (tmpl != NULL, NULL);
   g_return_val_if_fail (iostream != NULL, NULL);
 
   fd = g_file_open_tmp (tmpl, &path, error);



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