inode: fix overwritten refcount set

Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
Michael Shaw 2026-07-04 22:29:37 +02:00
commit dec9b2c715

View file

@ -72,8 +72,9 @@ inode_t *inode_create()
if (!ret)
return NULL;
ret->refcount = 1;
memset(ret, 0, sizeof(*ret));
ret->refcount = 1;
rwlock_init(&ret->rwlock);
return ret;