[glib] gio: The tmpl parameter to g_file_new_tmp can be NULL



commit 6e32f0a6018ab26b2a14c184752913d6f2ecad40
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 8406a93..d29c5cf 100644
--- a/gio/gfile.c
+++ b/gio/gfile.c
@@ -5937,7 +5937,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]