Commit 274a727e0bac38fdfe04e8b4999056169d48c325

Patrick Steinhardt 2016-08-05T10:57:42

apply: fix warning when initializing patch images

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/apply.c b/src/apply.c
index 40ba647..10bf1f4 100644
--- a/src/apply.c
+++ b/src/apply.c
@@ -38,7 +38,7 @@ static void patch_line_init(
 	out->content_offset = in_offset;
 }
 
-#define PATCH_IMAGE_INIT { {0} }
+#define PATCH_IMAGE_INIT { GIT_POOL_INIT, GIT_VECTOR_INIT }
 
 static int patch_image_init_fromstr(
 	patch_image *out, const char *in, size_t in_len)