mirror of
https://github.com/lexborisov/Modest
synced 2024-11-21 21:31:25 +03:00
commit
b8b6ca6861
@ -140,14 +140,12 @@ const charef_entry_t * myhtml_charef_find_by_pos(size_t pos, const char *begin,
|
||||
|
||||
result->is_done = 1;
|
||||
|
||||
if(named_character_references[pos].codepoints_len)
|
||||
return &named_character_references[pos];
|
||||
else if(result->last_entry) {
|
||||
if(result->last_entry) {
|
||||
*offset = result->last_offset;
|
||||
return result->last_entry;
|
||||
}
|
||||
|
||||
return &named_character_references[pos];
|
||||
return &named_character_references[0];
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user