[Python-checkins] r73618 - python/branches/py3k/Objects/capsule.c

benjamin.peterson python-checkins at python.org
Sun Jun 28 18:23:56 CEST 2009


Author: benjamin.peterson
Date: Sun Jun 28 18:23:55 2009
New Revision: 73618
Log:
fix useless comparison #6355
Modified:
 python/branches/py3k/Objects/capsule.c
Modified: python/branches/py3k/Objects/capsule.c
==============================================================================
--- python/branches/py3k/Objects/capsule.c	(original)
+++ python/branches/py3k/Objects/capsule.c	Sun Jun 28 18:23:55 2009
@@ -33,7 +33,7 @@
 /* if either is NULL, */
 if (!name1 || !name2) {
 /* they're only the same if they're both NULL. */
- return name2 == name2;
+ return name1 == name2;
 }
 return !strcmp(name1, name2);
 }


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /