Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 9ce97d539c92b3aa68cbad6fa7d49572bbee2c0d
Ticket: 1073161fffffffffffffffffffffffffffffffff
Wrong assignment in ListRemoveInner
User & Date: nobody on 2004-11-25 13:33:31
Changes

  1. assignee changed to: "vasiljevic"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    [email protected]
    
    During compilation of Thread 2.5.2 i saw a compiler 
    warning in procedure 'ListRemoveInner'. Test for equality 
    where an assignment is expected - I believe.
    
    Code follows:
    
    static void
    ListRemoveInner(tsdPtr)
        ThreadSpecificData *tsdPtr;
    {
        if (tsdPtr->prevPtr || tsdPtr->nextPtr) {
            if (tsdPtr->prevPtr) {
                tsdPtr->prevPtr->nextPtr = tsdPtr->nextPtr;
            } else {
                threadList = tsdPtr->nextPtr;
            }
            if (tsdPtr->nextPtr) {
                tsdPtr->nextPtr->prevPtr = tsdPtr->prevPtr;
            }
            tsdPtr->nextPtr = NULL;
            tsdPtr->prevPtr = NULL;
        } else if (tsdPtr == threadList) {
            threadList == NULL;
        }
    }
    
    The last statement should read (IMHO):
    
            threadList = NULL;
    
    
    
  4. foundin changed to: "None"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "80. Thread Package"
  10. title changed to: "Wrong assignment in ListRemoveInner"
  11. type changed to: "Bug"