Change-Id: I9a89538e95b71822eee9af8cd4eb21ae07fd45d7
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
return(NULL);
setting = _new(config_setting_t);
+ if (!setting)
+ return NULL;
+
setting->parent = parent;
setting->name = (name == NULL) ? NULL : strdup(name);
setting->type = type;
if(setting->type != CONFIG_TYPE_GROUP)
return(NULL);
+ if(! name)
+ return(NULL);
+
return(__config_list_search(setting->value.list, name, NULL));
}
config_setting_t *setting = config_setting_parent(_setting);
if(! setting)
- throw SettingNotFoundException(NULL);
+ throw SettingNotFoundException("Setting::getParent - parent not found");
return(wrapSetting(setting));
}
config_setting_t *setting = config_setting_parent(_setting);
if(! setting)
- throw SettingNotFoundException(NULL);
+ throw SettingNotFoundException("Setting::getParent - parent not found");
return(wrapSetting(setting));
}
if((name[0] != FILE_SEPARATOR[0]) && ctx->config->include_dir)
{
full_path = scanctx_filename(ctx, ctx->config->include_dir, name);
+ free((void*)name);
if(!full_path)
return NULL;
- free((void*)name);
}
else
full_path = name;