diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/ramfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ramfs.c b/fs/ramfs.c index fb8d0580d8..7548bdac9f 100644 --- a/fs/ramfs.c +++ b/fs/ramfs.c @@ -109,7 +109,7 @@ static struct ramfs_chunk *ramfs_get_chunk(void) if (!data) return NULL; - data->data = malloc(CHUNK_SIZE); + data->data = calloc(CHUNK_SIZE, 1); if (!data->data) { free(data); return NULL; |