Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 3c7a6cc2b87f867e68ac71183befb8c2b0431cb6
Ticket: 2976509fffffffffffffffffffffffffffffffff
Bogus field reference in TtyInit() in unix/tclUnixChan.c
User & Date: reeuwijk on 2010-03-25 14:49:03
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    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;
    }
    
  4. foundin changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "reeuwijk"
  10. subsystem changed to: "None"
  11. title changed to:
    Bogus field reference in TtyInit() in unix/tclUnixChan.c
    
  12. type changed to: "Bug"