diff options
author | David King <amigadave@amigadave.com> | 2015-02-09 21:26:19 +0000 |
---|---|---|
committer | David King <amigadave@amigadave.com> | 2015-02-09 23:32:11 +0000 |
commit | 32b46e6117923dcff9d64683e4fbedc7c32bea0a (patch) | |
tree | 3b090007014499ddf6229cfffcf2ae74851a044c | |
parent | c590e47e901accef2f38c514c0d759520e5c169d (diff) | |
download | yelp-32b46e6117923dcff9d64683e4fbedc7c32bea0a.tar.gz |
Add parentheses around assignments used as truth
Avoid compiler warnings.
-rw-r--r-- | libyelp/yelp-help-list.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libyelp/yelp-help-list.c b/libyelp/yelp-help-list.c index f65ebb29..5607761d 100644 --- a/libyelp/yelp-help-list.c +++ b/libyelp/yelp-help-list.c @@ -246,7 +246,7 @@ help_list_think (YelpHelpList *list) g_free (helpdirname); continue; } - while (child = g_file_enumerator_next_file (children, NULL, NULL)) { + while ((child = g_file_enumerator_next_file (children, NULL, NULL))) { gchar *docid; HelpListEntry *entry = NULL; @@ -323,7 +323,7 @@ help_list_think (YelpHelpList *list) g_free (langdirname); continue; } - while (child = g_file_enumerator_next_file (children, NULL, NULL)) { + while ((child = g_file_enumerator_next_file (children, NULL, NULL))) { gchar *docid, *filename; HelpListEntry *entry = NULL; if (g_file_info_get_file_type (child) != G_FILE_TYPE_DIRECTORY) { |