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

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.


svn path=/trunk/; revision=20327
This commit is contained in:
Tor Lillqvist 2008-06-07 04:19:54 +00:00 committed by Tor Lillqvist
parent d06e3a6a62
commit 3610acff8a
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,11 @@
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.
2008-06-06 Matthias Clasen <mclasen@redhat.com>
Bug 536757 regression: openoffice.org menus are placed at wrong

View File

@ -1475,7 +1475,6 @@ build_cache (const gchar *path)
/* Empty table, just close and remove the file */
fclose (cache);
close (fd);
g_unlink (tmp_cache_path);
exit (0);
}
@ -1483,7 +1482,6 @@ build_cache (const gchar *path)
/* 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);