Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 0b57484a823022dde4c2448d99138d66ba3429b8
Ticket: 1904432fffffffffffffffffffffffffffffffff
Tcl_DeleteCommandFromToken and NULL token
User & Date: dgp on 2008-03-12 02:47:25
Changes

  1. assignee changed to: "msofer"
  2. foundin changed to: "None"
  3. icomment:
    
    
    data_type - 360894
    
    Logged In: YES 
    user_id=80530
    Originator: NO
    
    
    I think you've misread the documentation.
    
    "If  the  command  corresponding  to token has already been deleted from
    interp then Tcl_DeleteCommand does nothing and returns -1; otherwise it
    returns 0."
    
    But you are not passing a token value of
    an already deleted command.  You are passing
    the value NULL.  And NULL values lead to crashes.
    
    There may be a convenience case to be made for
    changing this, but that's a feature request, not
    a bug.
    
    
    
    
  4. login: "dgp"
  5. mimetype: "text/plain"
  6. subsystem changed to: "45. Parsing and Eval"
  7. username: "dgp"