main: Avoid warning on un-initialized display 28/23728/2
authorMarius Vlad <marius.vlad@collabora.com>
Mon, 3 Feb 2020 16:48:06 +0000 (18:48 +0200)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Mon, 10 Feb 2020 18:43:51 +0000 (18:43 +0000)
Bug-AGL: SPEC-3150

Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Change-Id: Idda7b48313d05aa520a43a9af3db3a4be1710d9d

src/main.c

index 54de038..74e97d0 100644 (file)
@@ -1105,7 +1105,7 @@ ivi_compositor_get_quirks(struct ivi_compositor *ivi)
 int main(int argc, char *argv[])
 {
        struct ivi_compositor ivi = { 0 };
-       struct wl_display *display;
+       struct wl_display *display = NULL;
        struct wl_event_loop *loop;
        struct wl_event_source *signals[3] = { 0 };
        struct weston_config_section *section;