libmpm

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

commit cdda67a9fd6af54a6144bd5754e415ad20e96368
parent f1310827b32cd6a1104bf3a344e021da557a96fc
Author: Ne02ptzero <louis@ne02ptzero.me>
Date:   Fri, 16 Jun 2017 17:05:47 +0200

Fix(Packer): Useless allocation in packer.c

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

diff --git a/src/packer.c b/src/packer.c @@ -825,13 +825,6 @@ MPX_STATIC bool read_conf_opt(char *file, mlist_t **list, int *ret) { /* Iterate over each configure parameter */ for (u32_t i = 0; i < size; i++) { - opt = malloc(sizeof(*opt)); - if (opt == NULL) - { - SET_ERR(ERR_MEMORY); - goto cleanup; - } - tmp = file + *ret; *ret += strlen(tmp) + 1;