[COMMITED] [BZ #15381] Initialize wide struct info.

Ondřej Bílka neleai@seznam.cz
Fri May 24 06:41:00 GMT 2013


On Wed, May 22, 2013 at 02:44:08PM -0400, Carlos O'Donell wrote:
> On 05/22/2013 05:27 AM, Ondřej Bílka wrote:

> > diff --git a/libio/genops.c b/libio/genops.c
> > index 390d8d2..dc7da15 100644
> > --- a/libio/genops.c
> > +++ b/libio/genops.c
> > @@ -661,6 +661,10 @@ _IO_no_init (fp, flags, orientation, wd, jmp)
> >  
> >        fp->_wide_data->_wide_vtable = jmp;
> >      }
> > +  else
> > +    /* Cause predicable crash when wide function is called on byte
> > +       stream.  */
> > +    fp->_wide_data = (struct _IO_wide_data *) -1;
> >  #endif
> >    fp->_freeres_list = NULL;
> >  }
> > 
> 
> OK after you reply to Richard's comments, and ensure that -1L 
> is not required to avoid warnings (per Roland's comment).
> 
Thanks, thats what I commited.



More information about the Libc-alpha mailing list