We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e07dbc9 + a613832 commit 1f44079Copy full SHA for 1f44079
src/patch_parse.c
@@ -653,7 +653,7 @@ static int parse_hunk_body(
653
654
memset(line, 0x0, sizeof(git_diff_line));
655
656
- line->content = ctx->parse_ctx.line;
+ line->content = git__strdup(ctx->parse_ctx.line);
657
line->content_len = ctx->parse_ctx.line_len;
658
line->content_offset = ctx->parse_ctx.content_len - ctx->parse_ctx.remain_len;
659
line->origin = eof_for_origin(last_origin);
0 commit comments