diff options
Diffstat (limited to 'src/apply.c')
-rw-r--r-- | src/apply.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/apply.c b/src/apply.c index fc60e1418..f90166343 100644 --- a/src/apply.c +++ b/src/apply.c @@ -63,7 +63,8 @@ static int patch_image_init_fromstr( memset(out, 0x0, sizeof(patch_image)); - git_pool_init(&out->pool, sizeof(git_diff_line)); + if (git_pool_init(&out->pool, sizeof(git_diff_line)) < 0) + return -1; for (start = in; start < in + in_len; start = end) { end = memchr(start, '\n', in_len - (start - in)); |