This commit is contained in:
@@ -545,6 +545,9 @@ __evstring_findFirst_impl(
|
|||||||
.offset = ~0ull
|
.offset = ~0ull
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if(query.len == 0)
|
||||||
|
return result;
|
||||||
|
|
||||||
for(u64 i = text.offset; i < text.offset + text.len; i++) {
|
for(u64 i = text.offset; i < text.offset + text.len; i++) {
|
||||||
if(text.data[i] == query.data[query.offset + found_progress])
|
if(text.data[i] == query.data[query.offset + found_progress])
|
||||||
found_progress++;
|
found_progress++;
|
||||||
|
|||||||
Reference in New Issue
Block a user