Bogus field reference in TtyInit() in unix/tclUnixChan.c
Closed / Fixed2976509fffffffffffffffffffffffffffffffffCreated 17 years agoUpdated 42 days ago
Descriptionplain2010-03-25 14:49:03
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 21:59:32
You have a platform which uses sgtty? Wow...
serhiy.storchakawiki2026-10-21 10:03:37
The sgtty code, including this fragment, was removed by [993c21721a] in 8.6.1.
serhiy.storchaka Ticket [2976509fff]: 3 changes
[History diff]2026-10-22 17:19:30
Log in (anonymous is fine) to add a comment.