From: Hwankyu Jhun Date: Fri, 9 Sep 2016 00:15:46 +0000 (+0900) Subject: Add an exception handling X-Git-Tag: accepted/tizen/3.0/ivi/20161011.053529^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1f00a7ad993c367fe41ce08ca5531a63830dc964;p=platform%2Fcore%2Fsystem%2Fbuxton2.git Add an exception handling Change-Id: Ifd4f889cdb3c214485e5f5f77c5b2c8a2fb8ed03 Signed-off-by: Hwankyu Jhun --- 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;