eom: set init count value to 0 07/216007/1
authorJunkyeong Kim <jk0430.kim@samsung.com>
Fri, 18 Oct 2019 07:23:06 +0000 (16:23 +0900)
committerJunkyeong Kim <jk0430.kim@samsung.com>
Fri, 18 Oct 2019 07:23:09 +0000 (16:23 +0900)
Change-Id: If8b6ef0a3856a6d2ec040f5d895cb3dbae01c76c
Signed-off-by: Junkyeong Kim <jk0430.kim@samsung.com>
src/eom.c

index 69cd0b6..2f5497b 100644 (file)
--- a/src/eom.c
+++ b/src/eom.c
@@ -285,6 +285,10 @@ _eom_get_eom_output_ids(int *count)
        eom_output_id *output_ids = NULL;
        int i;
 
+       if (!count)
+               return NULL;
+       *count = 0;
+
        ret_array = eom_wayland_client_get_output_ids();
 
        if (!ret_array)