Skip to content

Commit 44112db

Browse files
emiliomystor
authored andcommitted
mailmap: Be consistent about checking len vs. len > 0
Not that it matters much anyway but...
1 parent ae5ee18 commit 44112db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mailmap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ static int git_mailmap_parse_single(
105105
*replace_name = NULL_RANGE;
106106
*replace_email = NULL_RANGE;
107107

108-
while (file->len) {
108+
while (file->len > 0) {
109109
/* Get the line, and remove any comments */
110110
range_split(*file, '\n', &line, file);
111111
range_split(line, '#', &line, &comment);

0 commit comments

Comments
 (0)