mirror of
https://git.planet-casio.com/Lephenixnoir/gint.git
synced 2025-04-04 01:27:11 +02:00
fs: initialize dynamically-allocated fd table
Obvious oversight from 736b58f205
.
This commit is contained in:
parent
70dccc29da
commit
45881995e9
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue