Commit 44112db208c92685ddaea4010b266cc411a062b2

Emilio Cobos Álvarez 2018-03-17T17:34:42

mailmap: Be consistent about checking len vs. len > 0 Not that it matters much anyway but...

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/mailmap.c b/src/mailmap.c
index 9c3b834..12b684f 100644
--- a/src/mailmap.c
+++ b/src/mailmap.c
@@ -105,7 +105,7 @@ static int git_mailmap_parse_single(
 	*replace_name = NULL_RANGE;
 	*replace_email = NULL_RANGE;
 
-	while (file->len) {
+	while (file->len > 0) {
 		/* Get the line, and remove any comments */
 		range_split(*file, '\n', &line, file);
 		range_split(line, '#', &line, &comment);