New submission from Benjamin Kramer <benny....@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 <rep...@bugs.python.org> <http://bugs.python.org/issue6355> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com