mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-09 13:04:42 +00:00
Merge pull request #3884 from pks-t/pks/patch-image-initialization
Patch image initialization
This commit is contained in:
commit
cba60b9b0e
@ -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
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user