diff options
Diffstat (limited to 'libio/fgetc.c')
-rw-r--r-- | libio/fgetc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libio/fgetc.c b/libio/fgetc.c index 2aaea05cfe..07fd89a516 100644 --- a/libio/fgetc.c +++ b/libio/fgetc.c @@ -31,8 +31,9 @@ fgetc (fp) { int result; CHECK_FILE (fp, EOF); - flockfile (fp); + __libc_cleanup_region_start (_IO_funlockfile, fp); + _IO_flockfile (fp); result = _IO_getc_unlocked (fp); - funlockfile (fp); + __libc_cleanup_region_end (1); return result; } |