summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <emilio@crisal.io>2018-03-17 17:34:42 +0100
committerNika Layzell <nika@thelayzells.com>2018-06-14 22:43:27 -0700
commit44112db208c92685ddaea4010b266cc411a062b2 (patch)
tree44d820835414caa0b62aa1fffe837975bfaca97f
parentae5ee182befb1bdf11b4455e796548fc18655af6 (diff)
downloadlibgit2-44112db208c92685ddaea4010b266cc411a062b2.tar.gz
mailmap: Be consistent about checking len vs. len > 0
Not that it matters much anyway but...
-rw-r--r--src/mailmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mailmap.c b/src/mailmap.c
index 9c3b8343c..12b684f6a 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);