os_trace: Actually fix the issue with floods of failed assertions
This commit is contained in:
parent
9efc2d9e6a
commit
3d7e6f1961
|
@ -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;
|
trace_query_channel_domain_t *domain = (trace_query_channel_domain_t *) q;
|
||||||
|
|
||||||
return_val_if_fail(domain != NULL, false);
|
return_val_if_fail(domain != NULL, false);
|
||||||
return_val_if_fail(domain->channel != NULL, false);
|
|
||||||
return_val_if_fail(u != NULL, false);
|
return_val_if_fail(u != NULL, false);
|
||||||
|
|
||||||
|
if (domain->channel == NULL)
|
||||||
|
return false;
|
||||||
|
|
||||||
return (chanuser_find(domain->channel, u) != NULL);
|
return (chanuser_find(domain->channel, u) != NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue