We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
git_diff_init_options
1 parent 723bdf4 commit e733001Copy full SHA for e733001
src/diff_parse.c
@@ -44,7 +44,11 @@ static git_diff_parsed *diff_parsed_alloc(void)
44
diff->base.patch_fn = git_patch_parsed_from_diff;
45
diff->base.free_fn = diff_parsed_free;
46
47
- git_diff_init_options(&diff->base.opts, GIT_DIFF_OPTIONS_VERSION);
+ if (git_diff_init_options(&diff->base.opts, GIT_DIFF_OPTIONS_VERSION) < 0) {
48
+ git__free(&diff);
49
+ return NULL;
50
+ }
51
+
52
diff->base.opts.flags &= ~GIT_DIFF_IGNORE_CASE;
53
54
git_pool_init(&diff->base.pool, 1);
0 commit comments