summaryrefslogtreecommitdiff
path: root/gtk/updateiconcache.c
diff options
context:
space:
mode:
authorTor Lillqvist <tml@novell.com>2008-06-07 04:19:54 +0000
committerTor Lillqvist <tml@src.gnome.org>2008-06-07 04:19:54 +0000
commit3610acff8a4cb7b9b804940b044007e5d10953ef (patch)
tree7ffb11e013f918f89b50cc4d577c42821d692563 /gtk/updateiconcache.c
parentd06e3a6a62f066965810fecacaf4685a25a927df (diff)
downloadgdk-pixbuf-3610acff8a4cb7b9b804940b044007e5d10953ef.tar.gz
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
Diffstat (limited to 'gtk/updateiconcache.c')
-rw-r--r--gtk/updateiconcache.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/gtk/updateiconcache.c b/gtk/updateiconcache.c
index a9381ce74..58aaf5d87 100644
--- a/gtk/updateiconcache.c
+++ b/gtk/updateiconcache.c
@@ -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);