Skip to content

Commit 88bb0b2

Browse files
committed
FIXED: json_skip_ws/3: Pass exception.
1 parent 0b5ffd4 commit 88bb0b2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

json.c

+2
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,8 @@ json_skip_ws(term_t stream, term_t c0, term_t next)
167167
} while ( is_ws(c) );
168168

169169
PL_release_stream(in);
170+
if ( c == -1 && Sferror(in) )
171+
return false;
170172
}
171173

172174
return PL_unify_integer(next, c);

0 commit comments

Comments
 (0)