Overview
| Artifact ID: | 9ce97d539c92b3aa68cbad6fa7d49572bbee2c0d |
|---|---|
| Ticket: | 1073161fffffffffffffffffffffffffffffffff
Wrong assignment in ListRemoveInner |
| User & Date: | nobody on 2004-11-25 13:33:31 |
Changes
- assignee changed to: "vasiljevic"
- cmimetype changed to: "text/plain"
- 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;
- foundin changed to: "None"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nobody"
- subsystem changed to: "80. Thread Package"
- title changed to: "Wrong assignment in ListRemoveInner"
- type changed to: "Bug"