Add more error checking in net resolve.

This commit is contained in:
Henrik Rydgard 2016-04-09 18:20:31 +02:00
parent 83d564f883
commit 774539dea8
2 changed files with 10 additions and 1 deletions

View file

@ -1058,6 +1058,11 @@ void Config::DownloadCompletedCallback(http::Download &download) {
JsonReader reader(data.c_str(), data.size());
const json_value *root = reader.root();
if (!root) {
ERROR_LOG(LOADER, "Failed to parse json");
return;
}
std::string version = root->getString("version", "");
const char *gitVer = PPSSPP_GIT_VERSION;