Skip to content

Commit

Permalink
required end check
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenberry committed Oct 17, 2022
1 parent 77ee844 commit 4b26d75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/glaze/json/read.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ namespace glz
skip_ws(it, end);

for_each<N>([&](auto I) {
if (*it == ']') {
if (it == end || *it == ']') {
return;
}
if constexpr (I != 0) {
Expand Down

0 comments on commit 4b26d75

Please sign in to comment.