layout: Check app_id for remote type of surfaces 34/25434/3
authorMarius Vlad <marius.vlad@collabora.com>
Tue, 6 Oct 2020 06:54:45 +0000 (09:54 +0300)
committerMarius Vlad <marius.vlad@collabora.com>
Thu, 5 Nov 2020 08:41:32 +0000 (10:41 +0200)
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

src/layout.c

index 1895a07..0345807 100644 (file)
@@ -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;