Complete error checking in _project_load_subdirs_subdir()
This commit is contained in:
parent
a65fb17050
commit
4190e6dfd4
@ -519,14 +519,12 @@ static int _project_load_subdirs(ConfigurePrefs * prefs, char const * directory,
|
|||||||
|
|
||||||
static int _project_load_subdirs_subdir(ConfigurePrefs * prefs,
|
static int _project_load_subdirs_subdir(ConfigurePrefs * prefs,
|
||||||
char const * directory, configArray * ca, char const * subdir)
|
char const * directory, configArray * ca, char const * subdir)
|
||||||
/* FIXME error checking */
|
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
String * p;
|
String * p;
|
||||||
|
|
||||||
p = string_new(directory);
|
if((p = string_new_append(directory, "/", subdir, NULL)) == NULL)
|
||||||
string_append(&p, "/");
|
return error_print(PROGNAME);
|
||||||
string_append(&p, subdir);
|
|
||||||
ret = _project_load(prefs, p, ca);
|
ret = _project_load(prefs, p, ca);
|
||||||
string_delete(p);
|
string_delete(p);
|
||||||
return ret;
|
return ret;
|
||||||
|
Loading…
Reference in New Issue
Block a user