find_thread(): thread::name is an array, so the NULL check is useless
(CID 4073). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40083 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
66e8557230
commit
b734adba63
@ -2524,7 +2524,7 @@ find_thread(const char *name)
|
||||
while ((thread = (struct thread*)hash_next(sThreadHash, &iterator))
|
||||
!= NULL) {
|
||||
// Search through hash
|
||||
if (thread->name != NULL && !strcmp(thread->name, name)) {
|
||||
if (!strcmp(thread->name, name)) {
|
||||
thread_id id = thread->id;
|
||||
|
||||
RELEASE_THREAD_LOCK();
|
||||
|
Loading…
Reference in New Issue
Block a user