From dab9c3488e86d5304f3e4b778933760374494a82 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 18 Sep 2018 15:02:11 -0700 Subject: Simplify tzfile fstat failure code [BZ #21716] * time/tzfile.c (__tzfile_read): Simplify slightly. --- time/tzfile.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'time') 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; -- cgit v1.2.3