Commit cba60b9b by Edward Thomson Committed by GitHub

Merge pull request #3884 from pks-t/pks/patch-image-initialization

Patch image initialization
parents 73dab769 274a727e
......@@ -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)
......
......@@ -35,6 +35,8 @@ typedef struct {
uint32_t page_size; /* size of page in bytes */
} git_pool;
#define GIT_POOL_INIT { NULL, 0, 0 }
#else
/**
......@@ -57,6 +59,9 @@ typedef struct {
uint32_t item_size;
uint32_t page_size;
} git_pool;
#define GIT_POOL_INIT { GIT_VECTOR_INIT, 0, 0 }
#endif
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment