Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 4aa2ff5eb3956b30e571540e5578df19acc7a865
Ticket: 1519940fffffffffffffffffffffffffffffffff
Tcl_CreateObjCommand calls TclInvalidateNsPath twice
User & Date: fridolin on 2006-07-10 13:10:47
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Hi,
    
    compare Tcl_CreateCommand and Tcl_CreateObjCommand.
    The first call of  TclInvalidateNsPath()
    seems to make no sense. There is a second call in the 
    else-branch of if.
    
    Christoph Bauer
    
    1-liner patch:
    
    *** tclBasic.c.orig     2006-07-10 15:04:18.000000000 
    +0200
    --- tclBasic.c  2006-07-10 15:03:53.000000000 +0200
    ***************
    *** 1656,1662 ****
          }
      
          hPtr = Tcl_CreateHashEntry(&nsPtr->cmdTable, 
    tail, &new);
    -     TclInvalidateNsPath(nsPtr);
          if (!new) {
            cmdPtr = (Command *) Tcl_GetHashValue(hPtr);
      
    --- 1656,1661 ----
    
  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: "fridolin"
  9. subsystem changed to: "None"
  10. title changed to:
    Tcl_CreateObjCommand calls TclInvalidateNsPath twice
    
  11. type changed to: "Patch"