summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunkyeong Kim <jk0430.kim@samsung.com>2019-10-18 16:23:06 +0900
committerJunkyeong Kim <jk0430.kim@samsung.com>2019-10-18 16:23:09 +0900
commitf3a128a93a083a6b6f8bf2249c4bdf92d43daa90 (patch)
tree6b57879b8aaa13b228ed7a19e4a102a8013d4e71
parent08a8fefd6a20a4d9baaf392c546a81b957a208ed (diff)
downloadlibeom-f3a128a93a083a6b6f8bf2249c4bdf92d43daa90.tar.gz
libeom-f3a128a93a083a6b6f8bf2249c4bdf92d43daa90.tar.bz2
libeom-f3a128a93a083a6b6f8bf2249c4bdf92d43daa90.zip
eom: set init count value to 0
Change-Id: If8b6ef0a3856a6d2ec040f5d895cb3dbae01c76c Signed-off-by: Junkyeong Kim <jk0430.kim@samsung.com>
-rw-r--r--src/eom.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/eom.c b/src/eom.c
index 69cd0b6..2f5497b 100644
--- 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)