diff options
author | Ulrich Drepper <drepper@gmail.com> | 2011-05-14 10:59:54 -0400 |
---|---|---|
committer | Ulrich Drepper <drepper@gmail.com> | 2011-05-14 10:59:54 -0400 |
commit | ca408c157c71edebf45862c35738eb2614cbcd77 (patch) | |
tree | c19aadf7819884a46d32ba42d55f948b02affaa6 | |
parent | d6f67f7d833b4e2039f832355fb0edd65522c9f4 (diff) | |
download | glibc-ca408c157c71edebf45862c35738eb2614cbcd77.tar glibc-ca408c157c71edebf45862c35738eb2614cbcd77.tar.gz glibc-ca408c157c71edebf45862c35738eb2614cbcd77.tar.bz2 glibc-ca408c157c71edebf45862c35738eb2614cbcd77.zip |
Initialize variable in _IO_new_file_close_it
The last change left a variable in some situations uninitialized.
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | libio/fileops.c | 2 |
2 files changed, 4 insertions, 0 deletions
@@ -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. diff --git a/libio/fileops.c b/libio/fileops.c index 678e32a641..343afa68b5 100644 --- a/libio/fileops.c +++ b/libio/fileops.c @@ -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); |