We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 73dab76 + 274a727 commit cba60b9Copy full SHA for cba60b9
src/apply.c
@@ -38,7 +38,7 @@ static void patch_line_init(
38
out->content_offset = in_offset;
39
}
40
41
-#define PATCH_IMAGE_INIT { {0} }
+#define PATCH_IMAGE_INIT { GIT_POOL_INIT, GIT_VECTOR_INIT }
42
43
static int patch_image_init_fromstr(
44
patch_image *out, const char *in, size_t in_len)
src/pool.h
@@ -35,6 +35,8 @@ typedef struct {
35
uint32_t page_size; /* size of page in bytes */
36
} git_pool;
37
+#define GIT_POOL_INIT { NULL, 0, 0 }
+
#else
/**
@@ -57,6 +59,9 @@ typedef struct {
57
59
uint32_t item_size;
58
60
uint32_t page_size;
61
62
63
+#define GIT_POOL_INIT { GIT_VECTOR_INIT, 0, 0 }
64
65
#endif
66
67
0 commit comments