diff options
author | Tor Lillqvist <tml@novell.com> | 2008-06-07 04:19:54 +0000 |
---|---|---|
committer | Tor Lillqvist <tml@src.gnome.org> | 2008-06-07 04:19:54 +0000 |
commit | 3610acff8a4cb7b9b804940b044007e5d10953ef (patch) | |
tree | 7ffb11e013f918f89b50cc4d577c42821d692563 /gtk/updateiconcache.c | |
parent | d06e3a6a62f066965810fecacaf4685a25a927df (diff) | |
download | gtk+-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.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/gtk/updateiconcache.c b/gtk/updateiconcache.c index a9381ce741..58aaf5d87f 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); |