diff options
Diffstat (limited to 'src/patch_parse.c')
-rw-r--r-- | src/patch_parse.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/patch_parse.c b/src/patch_parse.c index 8b0a5d351..fee6afad6 100644 --- a/src/patch_parse.c +++ b/src/patch_parse.c @@ -613,10 +613,7 @@ static int parse_patch_header( { int error = 0; - for (ctx->parse_ctx.line = ctx->parse_ctx.remain; - ctx->parse_ctx.remain_len > 0; - git_parse_advance_line(&ctx->parse_ctx)) { - + for (; ctx->parse_ctx.remain_len > 0; git_parse_advance_line(&ctx->parse_ctx)) { /* This line is too short to be a patch header. */ if (ctx->parse_ctx.line_len < 6) continue; |