Skip to content

Commit

Permalink
fix build fail
Browse files Browse the repository at this point in the history
  • Loading branch information
Tonghui Tang committed Aug 19, 2020
1 parent d364350 commit d601388
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/rest/json.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -634,9 +634,9 @@ bool JsonString2NetworkConfiguration(std::string aString, NetworkConfiguration &
cJSON *value;
cJSON *jsonOut;
bool ret = true;
jsonOut = cJSON_Parse(aString.c_str());
value = cJSON_GetObjectItemCaseSensitive(jsonOut, "networkKey");

jsonOut = cJSON_Parse(aString.c_str());
value = cJSON_GetObjectItemCaseSensitive(jsonOut, "networkKey");
VerifyOrExit(cJSON_IsString(value) && (value->valuestring != nullptr), ret = false);
aNetwork.mNetworkKey = std::string(value->valuestring);

Expand Down

0 comments on commit d601388

Please sign in to comment.