summaryrefslogtreecommitdiff
path: root/src/diff_parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/diff_parse.c')
-rw-r--r--src/diff_parse.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/diff_parse.c b/src/diff_parse.c
index 098e56f9a..75e41a544 100644
--- a/src/diff_parse.c
+++ b/src/diff_parse.c
@@ -52,9 +52,8 @@ static git_diff_parsed *diff_parsed_alloc(void)
diff->base.opts.flags &= ~GIT_DIFF_IGNORE_CASE;
- git_pool_init(&diff->base.pool, 1);
-
- if (git_vector_init(&diff->patches, 0, NULL) < 0 ||
+ if (git_pool_init(&diff->base.pool, 1) < 0 ||
+ git_vector_init(&diff->patches, 0, NULL) < 0 ||
git_vector_init(&diff->base.deltas, 0, git_diff_delta__cmp) < 0) {
git_diff_free(&diff->base);
return NULL;