[New-bugs-announce] [issue6355] bogus NULL check in PyCapsule

Benjamin Kramer report at bugs.python.org
Sun Jun 28 11:34:37 CEST 2009


New submission from Benjamin Kramer <benny.kra at gmail.com>:

Objects/capsule.c contains the following code:

if (!name1 || !name2) {
    /* they're only the same if they're both NULL. */
    return name2 == name2;
}

The result of this comparison will always be true. The comment says it 
should be 'name1 == name2'.

----------
components: Interpreter Core
files: capsulecompare.patch
keywords: patch
messages: 89769
nosy: bkramer
severity: normal
status: open
title: bogus NULL check in PyCapsule
versions: Python 3.1
Added file: http://bugs.python.org/file14375/capsulecompare.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6355>
_______________________________________


More information about the New-bugs-announce mailing list