Skip to content

Commit 9545f52

Browse files
Fabien Servantservantftransperfect
authored andcommitted
Bug in json parsing
1 parent 81596c0 commit 9545f52

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/aliceVision/dataio/json.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ std::vector<boost::json::value> readJsons(std::istream& is, boost::system::error
1212
{
1313
content += line;
1414

15-
totalRead = 0;
15+
//Try to read all available items in the buffer
1616
while (true)
1717
{
18-
totalRead += p.write(content, ec);
18+
totalRead = p.write_some(content, ec);
1919

2020
// If the parser did not find a value, then it won't
2121
// find anything more.

0 commit comments

Comments
 (0)