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-10-06 10:11:09 +0300
commit097713d92a9b42457e5d10de8a5c500aec926f1b (patch)
tree6cca02416ec8d170af59980ea27fcf6a9635ba73
parent54b89861c1c7331469b5f8c646a6cb79fb7ed73d (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. 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;