get_remote_group(): rename local variable "space" to "wordlen"

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Michael Haggerty committed Jul 28, 2015 at 23:08 UTC e286542de0c27e2c53d9a1ec44897dbef5de80dc
1 file changed +5 -5
builtin/fetch.c
+5 -5
@@ -976,13 +976,13 @@ static int get_remote_group(const char *key, const char *value, void *priv)
976 if (starts_with(key, "remotes.") &&
977 !strcmp(key + 8, g->name)) {
978 /* split list by white space */
979 - int space = strcspn(value, " \t\n");
979 + size_t wordlen = strcspn(value, " \t\n");
980 while (*value) {
981 - if (space >= 1)
981 + if (wordlen >= 1)
982 string_list_append(g->list,
983 - xstrndup(value, space));
984 - value += space + (value[space] != '\0');
985 - space = strcspn(value, " \t\n");
983 + xstrndup(value, wordlen));
984 + value += wordlen + (value[wordlen] != '\0');
985 + wordlen = strcspn(value, " \t\n");
986 }
987 }
988