os_trace: Actually fix the issue with floods of failed assertions

This commit is contained in:
Alex Iadicicco 2013-10-14 16:33:33 -07:00
parent 9efc2d9e6a
commit 3d7e6f1961
1 changed files with 3 additions and 1 deletions

View File

@ -293,9 +293,11 @@ static bool trace_channel_exec(user_t *u, void *q)
trace_query_channel_domain_t *domain = (trace_query_channel_domain_t *) q;
return_val_if_fail(domain != NULL, false);
return_val_if_fail(domain->channel != NULL, false);
return_val_if_fail(u != NULL, false);
if (domain->channel == NULL)
return false;
return (chanuser_find(domain->channel, u) != NULL);
}