[Issue#] P131004-03430
[Problem] Occasional libjson-glib crash occurs during parsing files.
[Cause] libjson-glib does not handle non-json files internally.
[Solution] web-provider requests to parse json files only to libjson-glib
Change-Id: Iebe4b00f004bfdb06b9baf67045f3746881cf9f4
continue;
}
- LogD("config file: %s", configPath.c_str());
- configList.push_back(configPath);
+ if (configPath.substr(configPath.find_last_of(".")) == jsonFileExtension) {
+ LogD("config file: %s", configPath.c_str());
+ configList.push_back(configPath);
+ }
}
// close directory of web provider plugin
closedir(dir);