Kaydet (Commit) 3e791903 authored tarafından Benjamin Peterson's avatar Benjamin Peterson

fix useless comparison #6355

üst b1715f13
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment