bdk: ini: homogenize return values
This commit is contained in:
@@ -74,7 +74,7 @@ int ini_parse(link_t *dst, const char *ini_path, bool is_dir)
|
|||||||
if (!filelist)
|
if (!filelist)
|
||||||
{
|
{
|
||||||
free(filename);
|
free(filename);
|
||||||
return 0;
|
return 1;
|
||||||
}
|
}
|
||||||
strcpy(filename + pathlen, "/");
|
strcpy(filename + pathlen, "/");
|
||||||
pathlen++;
|
pathlen++;
|
||||||
@@ -100,7 +100,7 @@ int ini_parse(link_t *dst, const char *ini_path, bool is_dir)
|
|||||||
free(filelist);
|
free(filelist);
|
||||||
free(filename);
|
free(filename);
|
||||||
|
|
||||||
return 0;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
lbuf = malloc(512);
|
lbuf = malloc(512);
|
||||||
@@ -170,7 +170,7 @@ int ini_parse(link_t *dst, const char *ini_path, bool is_dir)
|
|||||||
free(filename);
|
free(filename);
|
||||||
free(filelist);
|
free(filelist);
|
||||||
|
|
||||||
return 1;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
char *ini_check_special_section(ini_sec_t *cfg)
|
char *ini_check_special_section(ini_sec_t *cfg)
|
||||||
|
|||||||
Reference in New Issue
Block a user