aboutsummaryrefslogtreecommitdiff
path: root/src/libfs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libfs')
-rw-r--r--src/libfs/fs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libfs/fs.c b/src/libfs/fs.c
index c06e19d8..b34df340 100644
--- a/src/libfs/fs.c
+++ b/src/libfs/fs.c
@@ -199,7 +199,7 @@ _fsgetfid(Fsys *fs)
qlock(&fs->lk);
if(fs->freefid == nil){
- f = malloc(sizeof(Fid)*Fidchunk);
+ f = mallocz(sizeof(Fid)*Fidchunk, 1);
if(f == nil){
qunlock(&fs->lk);
return nil;