Change-Id: If5d6b0b0323576a27e115a407c3130a2bac2111f
assert(report_path);
config_t config;
- if (!config_init(&config, CRASH_MANAGER_CONFIG_PATH))
- return -BR_ERR_INTERNAL;
+ char *crash_root_path = NULL;
+ if (config_init(&config, CRASH_MANAGER_CONFIG_PATH))
+ crash_root_path = config.crash_root_path;
+ else
+ crash_root_path = CRASH_ROOT_PATH;
- bool is_report = is_report_file(report_path, config.crash_root_path);
+ bool is_report = is_report_file(report_path, crash_root_path);
config_free(&config);
if (!is_report) {