Fix jv_load_file() assertion (fix #1410)

This commit is contained in:
Nicolas Williams committed 2017-05-20 18:53:48 -05:00
1 parent cb3d5aff84
commit 10d66051ef
2 files changed
+7 -5

No files matched your search

+1 -1
View File
@@ -9,7 +9,7 @@
// *missing_bytes. If there are no leading bytes or an invalid byte is
// encountered, NULL is returned and *missing_bytes is not altered.
const char* jvp_utf8_backtrack(const char* start, const char* min, int *missing_bytes) {
assert(min < start);
assert(min <= start);
if (min == start) {
return min;
}