Commit f68ee078 authored by Marius Vlad's avatar Marius Vlad

weston-log: Avoid prefix-matching the scope name when checking for a

pending subscription

It limits to scope name to an exact match.
Signed-off-by: Marius Vlad's avatarMarius Vlad <>
Reported-by: Pekka Paalanen's avatarPekka Paalanen <>
parent ded0b773
Pipeline #76661 passed with stages
in 1 minute and 55 seconds
......@@ -124,7 +124,7 @@ find_pending_subscription(struct weston_log_context *log_ctx,
struct weston_log_subscription *sub;
wl_list_for_each(sub, &log_ctx->pending_subscription_list, source_link)
if (!strncmp(sub->scope_name, scope_name, strlen(scope_name)))
if (!strcmp(sub->scope_name, scope_name))
return sub;
return NULL;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment