Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 2cc9da4a5b476433a0f9c1b0ff864dc038350e2b485815e0b30eed05eefffd77
Ticket: 26870862f0e8884eaec02c5a3bbc4caf2431a310
Wrong sentinel in Tcl_SetErrorCode usage
User & Date: gustafn3 on 2023-10-20 09:02:59
Changes

  1. icomment:
    > All such occurrences of "NULL" have been replaced ...
    
    Well, AFIKT not all (at least in the current "trunk" branch after a "fossil pull && fossil update"):
    e.g.
       generic/tclBinary.c: 403
       generic/tclBinary.c: 522
       generic/tclCompile.c: 2200
       ...
    
    > ... by (void *)NULL
    Maybe, i am too conservative, but "(char *)0L" is fully safe imho.
    
    The problem is, that is that the construct is implementation dependent, 
    people use different compilers on different OSes and platforms, .... 
    We all know, "not seen so far" is a way is a weak argument.
    
  2. login: "gustafn3"
  3. mimetype: "text/plain"