fs: initialize dynamically-allocated fd table

Obvious oversight from 736b58f205.
This commit is contained in:
Lephe 2023-01-14 22:28:27 +01:00
parent 70dccc29da
commit 45881995e9
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ static fs_descriptor_type_t devnull = {
GCONSTRUCTOR static void init_fs(void)
{
fdtable = malloc(FS_FD_MAX * sizeof *fdtable);
fdtable = calloc(FS_FD_MAX, sizeof *fdtable);
if(!fdtable)
return;