libmpm

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

commit a185485b3bf45a5a4d285fa0e54eed695b6a2d35
parent e238f4f0134b62d1865e44d6c37c0705e7988254
Author: Ne02ptzero <louis@ne02ptzero.me>
Date:   Wed, 15 Feb 2017 13:29:37 +0100

Hotfix(Config): Typo in pointer operation

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

diff --git a/src/config.c b/src/config.c @@ -105,7 +105,7 @@ config_t *parse_config(const char *path, u8_t *ret) { config->fn = malloc(strlen(path != NULL ? path : CONFIG_DEF_PATH) + 1); strcpy(config->fn, path != NULL ? path : CONFIG_DEF_PATH); - if (ret != 0) + if (*ret != 0) config_get_error_string(config); return config;