about summary refs log tree commit diff
path: root/time
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2018-09-18 15:02:11 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2018-09-18 15:09:01 -0700
commitdab9c3488e86d5304f3e4b778933760374494a82 (patch)
treec13bb52e61f1ea6872f482479d72f0edc8560ffc /time
parente4e4fde51a309801af5eed72d3494cbf4b7737aa (diff)
downloadglibc-dab9c3488e86d5304f3e4b778933760374494a82.tar.gz
glibc-dab9c3488e86d5304f3e4b778933760374494a82.tar.xz
glibc-dab9c3488e86d5304f3e4b778933760374494a82.zip
Simplify tzfile fstat failure code
[BZ #21716]
* time/tzfile.c (__tzfile_read): Simplify slightly.
Diffstat (limited to 'time')
-rw-r--r--time/tzfile.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/time/tzfile.c b/time/tzfile.c
index ea6e940303..72ef75f074 100644
--- a/time/tzfile.c
+++ b/time/tzfile.c
@@ -168,10 +168,7 @@ __tzfile_read (const char *file, size_t extra, char **extrap)
 
   /* Get information about the file we are actually using.  */
   if (fstat64 (__fileno (f), &st) != 0)
-    {
-      fclose (f);
-      goto ret_free_transitions;
-    }
+    goto lose;
 
   free ((void *) transitions);
   transitions = NULL;