diff options
author | Benjamin Peterson <benjamin@python.org> | 2009-06-28 16:23:55 +0000 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2009-06-28 16:23:55 +0000 |
commit | baee16f3ee466806c204f73158428741ad8eb4a7 (patch) | |
tree | 76fc8a26d55b5aaeac2ba7b361e4242679463046 /Objects | |
parent | 42959ea2e970746e0b848efac8877a4a616159fa (diff) | |
download | cpython-baee16f3ee466806c204f73158428741ad8eb4a7.tar.gz |
fix useless comparison #6355
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/capsule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/capsule.c b/Objects/capsule.c index 5304ce11f1..3d2d626ade 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); } |