summaryrefslogtreecommitdiff
path: root/vconf-compat
diff options
context:
space:
mode:
authorHwankyu Jhun <h.jhun@samsung.com>2016-09-09 09:15:46 +0900
committerHwankyu Jhun <h.jhun@samsung.com>2016-09-09 09:22:02 +0900
commit1f00a7ad993c367fe41ce08ca5531a63830dc964 (patch)
treef4caf4670974d5928e28b6f01a2928e24d70711f /vconf-compat
parent7cc037eb581464a46e6062b8963fa6a1560c7904 (diff)
downloadbuxton2-1f00a7ad993c367fe41ce08ca5531a63830dc964.tar.gz
buxton2-1f00a7ad993c367fe41ce08ca5531a63830dc964.tar.bz2
buxton2-1f00a7ad993c367fe41ce08ca5531a63830dc964.zip
Change-Id: Ifd4f889cdb3c214485e5f5f77c5b2c8a2fb8ed03 Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Diffstat (limited to 'vconf-compat')
-rw-r--r--vconf-compat/vconf.c4
1 files changed, 3 insertions, 1 deletions
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;