BShelf: Use strcmp().

This commit is contained in:
Augustin Cavalier
2016-01-13 10:14:03 -05:00
parent 63df190c0e
commit 56af4c7c2b
+1 -1
View File
@@ -1500,7 +1500,7 @@ BShelf::_GetProperty(BMessage *msg, BMessage *reply)
ReplicantAt(i, &view, &ID, &err);
if (err != B_OK || view == NULL)
continue;
if (BString(view->Name()) == name) {
if (view->Name() != NULL && strcmp(view->Name(), name) == 0) {
replicant = view;
break;
}