diff options
-rw-r--r-- | vconf-compat/vconf.c | 4 |
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; |