diff options
-rw-r--r-- | src/core/misc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/misc.c b/src/core/misc.c index 32cfeb9b..5e6087cb 100644 --- a/src/core/misc.c +++ b/src/core/misc.c @@ -183,7 +183,7 @@ int strarray_find(char **array, const char *item) GSList *gslist_find_string(GSList *list, const char *key) { - for (list = list; list != NULL; list = list->next) + for (; list != NULL; list = list->next) if (strcmp(list->data, key) == 0) return list; return NULL; @@ -191,7 +191,7 @@ GSList *gslist_find_string(GSList *list, const char *key) GSList *gslist_find_icase_string(GSList *list, const char *key) { - for (list = list; list != NULL; list = list->next) + for (; list != NULL; list = list->next) if (g_ascii_strcasecmp(list->data, key) == 0) return list; return NULL; @@ -268,7 +268,7 @@ GSList *hashtable_get_keys(GHashTable *hash) GList *glist_find_string(GList *list, const char *key) { - for (list = list; list != NULL; list = list->next) + for (; list != NULL; list = list->next) if (strcmp(list->data, key) == 0) return list; return NULL; @@ -276,7 +276,7 @@ GList *glist_find_string(GList *list, const char *key) GList *glist_find_icase_string(GList *list, const char *key) { - for (list = list; list != NULL; list = list->next) + for (; list != NULL; list = list->next) if (g_ascii_strcasecmp(list->data, key) == 0) return list; return NULL; |