fix empty file edge case in hash store / text cache

This commit is contained in:
Ryan Fleury committed 2024-10-22 16:19:11 -07:00
1 parent 340396f9f7
commit c67f1a8b4a
5 files changed
+14 -16

No files matched your search

+1 -1
View File
@@ -2168,7 +2168,7 @@ txt_parse_thread__entry_point(void *p)
//- rjf: data -> text info
Arena *info_arena = 0;
TXT_TextInfo info = {0};
if(got_task && data.size != 0)
if(got_task && !u128_match(hash, u128_zero()))
{
info_arena = arena_alloc();