libmpm

morphux C package management library
Log | Files | Refs | Submodules | README | LICENSE | git clone https://git.ne02ptzero.me/git/libmpm

commit eb0e731c7a452269f0eba051b77aa980d33b72f9
parent 64a01c3aea3c8d0400b5641ff29bfb724e785417
Author: Ne02ptzero <louis@ne02ptzero.me>
Date:   Wed, 10 May 2017 11:06:20 +0200

Fix(Tests): Proper allocation for packer_init members

Diffstat:
Mtests/test_packer.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/test_packer.c b/tests/test_packer.c @@ -557,8 +557,8 @@ TEST(packer_create_directory_name) { packer_t *ctx = NULL; ctx = packer_init("0"); - ctx->header = calloc(1, sizeof(ctx->header)); - ctx->header->package = calloc(1, sizeof(ctx->header->package)); + ctx->header = packer_header_init(); + ctx->header->package = packer_header_package_init(); ctx->header->package->name = strdup("1"); ctx->header->package->version = strdup("2");