fix empty file edge case in hash store / text cache

This commit is contained in:
Ryan Fleury
2024-10-22 16:19:01 -07:00
parent 340396f9f7
commit c67f1a8b4a
5 changed files with 14 additions and 16 deletions
+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();