summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarius Vlad <marius.vlad@collabora.com>2020-10-06 09:54:45 +0300
committerMarius Vlad <marius.vlad@collabora.com>2020-11-05 10:41:32 +0200
commit06e9aa93360beb8a25f2cef78576d1bf0c211a98 (patch)
treec20ebc11c54ce0e509c16824fa693bc985a73ec3
parentdce67758ac776ccf71faf31f8236fa3b10c31a2c (diff)
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 <marius.vlad@collabora.com> Change-Id: Iff7f633bced60b1177f53246880952a06cb716f0
-rw-r--r--src/layout.c3
1 files changed, 3 insertions, 0 deletions
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;