[yelp] Refactor for loop to avoid compiler warning
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [yelp] Refactor for loop to avoid compiler warning
- Date: Mon, 9 Feb 2015 23:36:47 +0000 (UTC)
commit e99b5b5644511c86d31ad5cfd57aa7286fafc6e0
Author: David King <amigadave amigadave com>
Date: Mon Feb 9 21:28:25 2015 +0000
Refactor for loop to avoid compiler warning
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 ffa3dae..dafd38b 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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]