Skip to content

Commit

Permalink
booru/site: Fix issue when constructing json object
Browse files Browse the repository at this point in the history
nlohmann/json#1359
This issue only occurred for me when using gcc 10, and did not happen
while using gcc 9.
  • Loading branch information
ahodesuka committed Sep 3, 2020
1 parent 7d933fd commit d566d70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/booru/site.cc
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ Site::Site(std::string name,
{
try
{
json j{ json::parse(curler.get_data()) };
json j = json::parse(curler.get_data());

std::string data{ j["data"].get<std::string>() }, line;
std::istringstream iss{ data };
Expand Down

0 comments on commit d566d70

Please sign in to comment.