Input Server: style fix, compare with 0 explicitly

This commit is contained in:
John Scipione 2014-07-11 13:02:51 -04:00
parent 7481292e36
commit b128ce7eff
1 changed files with 1 additions and 1 deletions

View File

@ -471,7 +471,7 @@ AddOnManager::_RegisterFilter(BInputServerFilter* filter, const entry_ref& ref,
for (int32 i = fFilterList.CountItems(); i-- > 0;) {
filter_info* info = fFilterList.ItemAt(i);
if (!strcmp(info->ref.name, ref.name)) {
if (strcmp(info->ref.name, ref.name) == 0) {
// we already know this ref
delete filter;
return B_NAME_IN_USE;