summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--git.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/git.c b/git.c
index 16f7810..47cb186 100644
--- a/git.c
+++ b/git.c
@@ -196,7 +196,7 @@ static int parse_colon_key_value_file(void *ret, void *ctx, const keyword **keyw
lhs = strtok_r(lhs, " \t\v\r\n", &rhs);
/* Did we hit EOF? */
- if (lhs == NULL) {
+ if (is_empty(lhs) || is_empty(buf)) {
break;
} else {
int error;