summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid King <amigadave@amigadave.com>2015-02-09 21:28:25 +0000
committerDavid King <amigadave@amigadave.com>2015-02-09 23:32:11 +0000
commite99b5b5644511c86d31ad5cfd57aa7286fafc6e0 (patch)
treec87a73fd760f23bfb1976868f203ed931ac07b2a
parent32b46e6117923dcff9d64683e4fbedc7c32bea0a (diff)
downloadyelp-e99b5b5644511c86d31ad5cfd57aa7286fafc6e0.tar.gz
Refactor for loop to avoid compiler warning
-rw-r--r--libyelp/yelp-docbook-document.c2
1 files changed, 1 insertions, 1 deletions
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);
}