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 -1
View File
@@ -471,7 +471,7 @@ AddOnManager::_RegisterFilter(BInputServerFilter* filter, const entry_ref& ref,
for (int32 i = fFilterList.CountItems(); i-- > 0;) { for (int32 i = fFilterList.CountItems(); i-- > 0;) {
filter_info* info = fFilterList.ItemAt(i); 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 // we already know this ref
delete filter; delete filter;
return B_NAME_IN_USE; return B_NAME_IN_USE;