From 719c109d4eb88d4f84792795ab7dc4014894cc02 Mon Sep 17 00:00:00 2001 From: CTCaer Date: Sun, 22 Feb 2026 03:23:28 +0200 Subject: [PATCH] bdk: ini: homogenize return values --- bdk/utils/ini.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bdk/utils/ini.c b/bdk/utils/ini.c index b5a2df8a..54345b1b 100644 --- a/bdk/utils/ini.c +++ b/bdk/utils/ini.c @@ -74,7 +74,7 @@ int ini_parse(link_t *dst, const char *ini_path, bool is_dir) if (!filelist) { free(filename); - return 0; + return 1; } strcpy(filename + pathlen, "/"); pathlen++; @@ -100,7 +100,7 @@ int ini_parse(link_t *dst, const char *ini_path, bool is_dir) free(filelist); free(filename); - return 0; + return 1; } lbuf = malloc(512); @@ -170,7 +170,7 @@ int ini_parse(link_t *dst, const char *ini_path, bool is_dir) free(filename); free(filelist); - return 1; + return 0; } char *ini_check_special_section(ini_sec_t *cfg)