mirror of
https://github.com/python/cpython.git
synced 2024-11-23 18:04:37 +08:00
fix useless comparison #6355
This commit is contained in:
parent
b1715f131f
commit
3e791903ce
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user