Tcl_DbCkfree needs a return value
Closed / Fixed218977ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 17 years ago
Descriptionplain2000-10-26 01:08:52
OriginalBugID: 3400 Bug
Version: 8.2.1
SubmitDate: '1999-11-05'
LastModified: '1999-11-11'
Severity: MED
Status: Released
Submitter: techsupp
ChangedBy: hobbs
OS: Windows NT
OSVersion: 4.0
FixedDate: '1999-11-11'
FixedInVersion: 8.2.3
ClosedDate: '2000-10-25'
Name:
Kory Hopkins
ReproducibleScript:
In generic/tclckalloc.c the method Tcl_DbCkfree() needs a return value
at the following state:
if (ptr == NULL) {
return 0;
}
I assume the return value should be 0.
ObservedBehavior:
Could cause some unexpected problems.
fixed
-- 11/11/1999 hobbs
welch Closed ticket [218977ffff].
[History diff]2000-10-26 08:33:07
dgp Ticket [218977ffff]: 3 changes
[History diff]2001-04-19 04:18:51
nijtmansplain2009-02-25 17:43:46
I don't think this fix is correct: Tcl_DbCkfree() is used as a macro implementation for ckfree which doesn't have a return value, so the signature of Tcl_DbCkfree is simply incorrect. It should not have a return value at all.
dkfplain2009-02-25 18:40:57
Could be a pre-C89-ism (i.e. doesn't assume that we've got 'void'). Note that Tcl now does assume C89, and has done for nearly a decade.
nijtmansplain2009-07-24 17:55:50
allow_comments - 1 already fixed long ago
Log in (anonymous is fine) to add a comment.