[issue6355] bogus NULL check in PyCapsule

2009-06-28 Thread Benjamin Peterson
Benjamin Peterson added the comment: Thanks for the patch! Fixed in r73618. -- nosy: +benjamin.peterson resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue6355] bogus NULL check in PyCapsule

2009-06-28 Thread Benjamin Kramer
New submission from Benjamin Kramer : 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'. --