mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
fix useless comparison #6355
This commit is contained in:
parent
b1715f131f
commit
3e791903ce
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue