From 06e9aa93360beb8a25f2cef78576d1bf0c211a98 Mon Sep 17 00:00:00 2001 From: Marius Vlad Date: Tue, 6 Oct 2020 09:54:45 +0300 Subject: [PATCH] layout: Check app_id for remote type of surfaces We don't have any checks against for not having an app_id being set. Bug-AGL: SPEC-3601 Signed-off-by: Marius Vlad Change-Id: Iff7f633bced60b1177f53246880952a06cb716f0 --- src/layout.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/layout.c b/src/layout.c index 1895a07..0345807 100644 --- a/src/layout.c +++ b/src/layout.c @@ -241,6 +241,9 @@ ivi_layout_find_with_app_id(const char *app_id, struct ivi_compositor *ivi) { struct ivi_output *out; + if (!app_id) + return NULL; + wl_list_for_each(out, &ivi->outputs, link) { if (!out->app_id) continue; -- 2.16.6