diff options
author | Emilio Cobos Álvarez <emilio@crisal.io> | 2018-03-17 17:34:42 +0100 |
---|---|---|
committer | Nika Layzell <nika@thelayzells.com> | 2018-06-14 22:43:27 -0700 |
commit | 44112db208c92685ddaea4010b266cc411a062b2 (patch) | |
tree | 44d820835414caa0b62aa1fffe837975bfaca97f | |
parent | ae5ee182befb1bdf11b4455e796548fc18655af6 (diff) | |
download | libgit2-44112db208c92685ddaea4010b266cc411a062b2.tar.gz |
mailmap: Be consistent about checking len vs. len > 0
Not that it matters much anyway but...
-rw-r--r-- | src/mailmap.c | 2 |
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); |