1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-30 22:43:12 +03:00

Initialize variable in _IO_new_file_close_it

The last change left a variable in some situations uninitialized.
This commit is contained in:
Ulrich Drepper
2011-05-14 10:59:54 -04:00
parent d6f67f7d83
commit ca408c157c
2 changed files with 4 additions and 0 deletions

View File

@ -1,5 +1,7 @@
2011-05-14 Ulrich Drepper <drepper@gmail.com>
* libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
[BZ #12432]
* sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
(dummy_getcfa): New function.

View File

@ -175,6 +175,8 @@ _IO_new_file_close_it (fp)
else
write_status = _IO_SYSSEEK (fp, o, SEEK_SET) < 0 ? EOF : 0;
}
else
write_status = 0;
INTUSE(_IO_unsave_markers) (fp);