Some minor paranoia to appease valgrind.

This commit is contained in:
2024-03-12 21:44:20 -04:00
parent 439f07162e
commit 88d8e60511
3 changed files with 5 additions and 5 deletions

View File

@ -234,6 +234,7 @@ static JSValue _file_read_file(JSContext* context, JSValueConst this_val, int ar
},
.size = k_file_read_max,
};
memset(req + 1, 0, k_file_read_max);
int result = uv_fs_open(tf_task_get_loop(task), &req->fs, file_name, UV_FS_O_RDONLY, 0, _file_read_open_callback);
if (result < 0)
{