ilmControl: shutdown_fd should be set to a default of -1
authorMarcus Fritzsch <marcus.fritzsch@xse.de>
Tue, 12 Aug 2014 11:40:04 +0000 (13:40 +0200)
committerNobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp>
Mon, 1 Sep 2014 06:55:43 +0000 (15:55 +0900)
Signed-off-by: Marcus Fritzsch <marcus.fritzsch@xse.de>
ivi-layermanagement-api/ilmControl/src/ilm_control_wayland_platform.c

index 5b77fc5..a1968f5 100644 (file)
@@ -906,7 +906,6 @@ registry_handle_control(void *data,
             return;
         }
     } else if (strcmp(interface, "wl_output") == 0) {
-
         struct screen_context *ctx_scrn = calloc(1, sizeof *ctx_scrn);
         struct wl_proxy *pxy = NULL;
 
@@ -1052,7 +1051,7 @@ ilmControl_init(t_ilm_nativedisplay nativedisplay)
         return ILM_ERROR_INVALID_ARGUMENTS;
     }
 
-    memset(ctx, 0, sizeof *ctx);
+    ctx->shutdown_fd = -1;
 
     ctx->wl.display = (struct wl_display*)nativedisplay;