From: Marius Vlad Date: Tue, 6 Oct 2020 06:54:45 +0000 (+0300) Subject: layout: Check app_id for remote type of surfaces X-Git-Tag: 10.91.0~15 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=06e9aa93360beb8a25f2cef78576d1bf0c211a98;p=src%2Fagl-compositor.git 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 --- 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;