mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-21 01:12:26 +08:00
Simplify tzfile fstat failure code
[BZ #21716] * time/tzfile.c (__tzfile_read): Simplify slightly.
This commit is contained in:
parent
e4e4fde51a
commit
dab9c3488e
@ -1,5 +1,9 @@
|
||||
2018-09-18 Paul Eggert <eggert@cs.ucla.edu>
|
||||
|
||||
Simplify tzfile fstat failure code
|
||||
[BZ #21716]
|
||||
* time/tzfile.c (__tzfile_read): Simplify slightly.
|
||||
|
||||
Fix tzfile low-memory assertion failure
|
||||
[BZ #21716]
|
||||
* time/tzfile.c (__tzfile_read): Check for memory exhaustion
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user