gtk+ r20328 - in branches/gtk-2-12: . gtk



Author: tml
Date: Sat Jun  7 04:20:35 2008
New Revision: 20328
URL: http://svn.gnome.org/viewvc/gtk+?rev=20328&view=rev

Log:
2008-06-07  Tor Lillqvist  <tml novell com>

	Bug 536990 - updateiconcache.c: 'close ()' is redundant

	* gtk/updateiconcache.c (build_cache): Drop redundant close()
	calls. fclose() on a fdopen()ed strema closes the underlying file
	descriptor.



Modified:
   branches/gtk-2-12/ChangeLog
   branches/gtk-2-12/gtk/updateiconcache.c

Modified: branches/gtk-2-12/gtk/updateiconcache.c
==============================================================================
--- branches/gtk-2-12/gtk/updateiconcache.c	(original)
+++ branches/gtk-2-12/gtk/updateiconcache.c	Sat Jun  7 04:20:35 2008
@@ -1475,7 +1475,6 @@
       /* Empty table, just close and remove the file */
 
       fclose (cache);
-      close (fd);
       g_unlink (tmp_cache_path);
       exit (0);
     }
@@ -1483,7 +1482,6 @@
   /* FIXME: Handle failure */
   retval = write_file (cache, files, directories);
   fclose (cache);
-  close (fd);
 
   g_list_foreach (directories, (GFunc)g_free, NULL);
   g_list_free (directories);



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