gio: The tmpl parameter to g_file_new_tmp can be NULL
authorDebarshi Ray <debarshir@gnome.org>
Thu, 17 May 2012 04:43:54 +0000 (06:43 +0200)
committerDebarshi Ray <debarshir@gnome.org>
Mon, 21 May 2012 15:54:25 +0000 (17:54 +0200)
Fixes: https://bugzilla.gnome.org/676208

gio/gfile.c

index 8406a93..d29c5cf 100644 (file)
@@ -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);