summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-06-28 16:23:55 (GMT)
committerBenjamin Peterson <benjamin@python.org>2009-06-28 16:23:55 (GMT)
commit3e791903ce31b5819f95bce9f3ec976754d03699 (patch)
tree2438471cfdfa9cfd7784ae6aedd50e65968307ff /Objects
parentb1715f131fffbe8fb91d66a70ccf3fe15c781001 (diff)
downloadcpython-3e791903ce31b5819f95bce9f3ec976754d03699.zip
cpython-3e791903ce31b5819f95bce9f3ec976754d03699.tar.gz
cpython-3e791903ce31b5819f95bce9f3ec976754d03699.tar.bz2
fix useless comparison #6355
Diffstat (limited to 'Objects')
-rw-r--r--Objects/capsule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/capsule.c b/Objects/capsule.c
index 5304ce1..3d2d626 100644
--- a/Objects/capsule.c
+++ b/Objects/capsule.c
@@ -33,7 +33,7 @@ name_matches(const char *name1, const char *name2) {
/* 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);
}