Bogus field reference in TtyInit() in unix/tclUnixChan.c
Closed / Duplicate2976524fffffffffffffffffffffffffffffffffCreated 17 years agoUpdated 17 years ago
Descriptionplain2010-03-25 15:12:52
The function TtyInit() in unix/tclUnixChan.c has the following code fragment:
#ifdef USE_SGTTY
if ((iostate.sg_flags & (EVENP | ODDP)) ||
!(iostate.sg_flags & RAW)) {
ttyPtr->stateUpdated = 1;
}
iostate.sg_flags &= EVENP | ODDP;
SET_BITS(iostate.sg_flags, RAW);
#endif /* USE_SGTTY */
However, ttyPtr points to a TtyState, which does not have a stateUpdated field. From the context it looks far more likely that this should simply be:
if( ... ){
stateUpdated = 1;
}
dkfplain2010-03-25 22:15:07
allow_comments - 1
Log in (anonymous is fine) to add a comment.