Add more error checking in net resolve.
This commit is contained in:
parent
83d564f883
commit
774539dea8
2 changed files with 10 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue