libmpm

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

commit d8338e166a0f89ba1a12ca6cd2470b3f2dadff64
parent d5f791991b44def9f33dd256a601c7b0495645db
Author: Ne02ptzero <louis@ne02ptzero.me>
Date:   Mon,  6 Feb 2017 10:13:54 +0100

Fix(Package): Proper init

Diffstat:
Msrc/package.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/package.c b/src/package.c @@ -41,6 +41,8 @@ int mpm_package_free(void *tmp) { */ void mpm_package_init(package_t *ptr) { if (ptr) { + ptr->id = 0; + ptr->state = PACKAGE_STATE_ORPHAN; ptr->name = NULL; ptr->version = NULL; ptr->categ = NULL;