libmpm

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

commit e4bfe201e174bdc9660005756959a8b2eac3e0ac
parent f50751ba1ea5e077e3bbb4d25780a23e1c23aad5
Author: Ne02ptzero <louis@ne02ptzero.me>
Date:   Wed, 15 Feb 2017 10:50:09 +0100

Fix(config_parse): Add a check on a pointer

Diffstat:
Msrc/config.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/src/config.c b/src/config.c @@ -94,6 +94,7 @@ config_t *parse_config(const char *path, u8_t *ret) { CFG_END() }; + assert(ret != NULL); config = malloc(sizeof(config_t)); assert(config != NULL); config->fn = NULL;