Skip to content

Commit e286542

Browse files
mhaggergitster
authored andcommitted
get_remote_group(): rename local variable "space" to "wordlen"
Signed-off-by: Michael Haggerty <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent c26f7d7 commit e286542

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

builtin/fetch.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -976,13 +976,13 @@ static int get_remote_group(const char *key, const char *value, void *priv)
976976
if (starts_with(key, "remotes.") &&
977977
!strcmp(key + 8, g->name)) {
978978
/* split list by white space */
979-
int space = strcspn(value, " \t\n");
979+
size_t wordlen = strcspn(value, " \t\n");
980980
while (*value) {
981-
if (space >= 1)
981+
if (wordlen >= 1)
982982
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");
986986
}
987987
}
988988

0 commit comments

Comments
 (0)