From e99b5b5644511c86d31ad5cfd57aa7286fafc6e0 Mon Sep 17 00:00:00 2001 From: David King Date: Mon, 9 Feb 2015 21:28:25 +0000 Subject: Refactor for loop to avoid compiler warning --- libyelp/yelp-docbook-document.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libyelp/yelp-docbook-document.c b/libyelp/yelp-docbook-document.c index ffa3daed..dafd38b4 100644 --- a/libyelp/yelp-docbook-document.c +++ b/libyelp/yelp-docbook-document.c @@ -965,7 +965,7 @@ docbook_index_chunk (DocbookIndexData *index) index->str = g_string_new (""); } - for (child = index->cur->children; child = child->next; child) { + for (child = index->cur->children; child; child = child->next) { if (docbook_walk_chunkQ (index->docbook, child, index->depth, index->max_depth)) { chunks = g_slist_append (chunks, child); } -- cgit v1.2.1