From 1f00a7ad993c367fe41ce08ca5531a63830dc964 Mon Sep 17 00:00:00 2001 From: Hwankyu Jhun Date: Fri, 9 Sep 2016 09:15:46 +0900 Subject: Add an exception handling Change-Id: Ifd4f889cdb3c214485e5f5f77c5b2c8a2fb8ed03 Signed-off-by: Hwankyu Jhun --- vconf-compat/vconf.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'vconf-compat') diff --git a/vconf-compat/vconf.c b/vconf-compat/vconf.c index daa0ea2..26592a2 100644 --- a/vconf-compat/vconf.c +++ b/vconf-compat/vconf.c @@ -1121,7 +1121,9 @@ EXPORT keynode_t *vconf_keylist_nextnode(keylist_t *keylist) next = g_list_first(keylist->cursor); } - node = next->data; + if (next) + node = next->data; + keylist->cursor = next; return node; -- cgit v1.2.3