From: Benjamin Peterson Date: Sun, 28 Jun 2009 16:23:55 +0000 (+0000) Subject: fix useless comparison #6355 X-Git-Tag: v3.2a1~2973 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3e791903ce31b5819f95bce9f3ec976754d03699;p=python fix useless comparison #6355 --- 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); }