diff options
author | David King <amigadave@amigadave.com> | 2015-02-09 21:28:25 +0000 |
---|---|---|
committer | David King <amigadave@amigadave.com> | 2015-02-09 23:32:11 +0000 |
commit | e99b5b5644511c86d31ad5cfd57aa7286fafc6e0 (patch) | |
tree | c87a73fd760f23bfb1976868f203ed931ac07b2a /libyelp/yelp-docbook-document.c | |
parent | 32b46e6117923dcff9d64683e4fbedc7c32bea0a (diff) | |
download | yelp-e99b5b5644511c86d31ad5cfd57aa7286fafc6e0.tar.gz |
Refactor for loop to avoid compiler warning
Diffstat (limited to 'libyelp/yelp-docbook-document.c')
-rw-r--r-- | libyelp/yelp-docbook-document.c | 2 |
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); } |