This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GNU C Library master sources branch, master, updated. glibc-2.13-167-gca408c1


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  ca408c157c71edebf45862c35738eb2614cbcd77 (commit)
      from  d6f67f7d833b4e2039f832355fb0edd65522c9f4 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://sources.redhat.com/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=ca408c157c71edebf45862c35738eb2614cbcd77

commit ca408c157c71edebf45862c35738eb2614cbcd77
Author: Ulrich Drepper <drepper@gmail.com>
Date:   Sat May 14 10:59:54 2011 -0400

    Initialize variable in _IO_new_file_close_it
    
    The last change left a variable in some situations uninitialized.

diff --git a/ChangeLog b/ChangeLog
index 43726ca..9d9e215 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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 678e32a..343afa6 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);
 

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog       |    2 ++
 libio/fileops.c |    2 ++
 2 files changed, 4 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
GNU C Library master sources


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]