main: use malloc instead of calloc

the memory will be overwritten.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
Giuseppe Scrivano 2019-07-23 11:09:58 +02:00
parent 605e17fbf7
commit c5bfc0ba87
No known key found for this signature in database
GPG Key ID: E4730F97F60286ED

2
main.c
View File

@ -1857,7 +1857,7 @@ ovl_do_readdir (fuse_req_t req, fuse_ino_t ino, size_t size,
char *p;
cleanup_free char *buffer = NULL;
buffer = calloc (size, 1);
buffer = malloc (size);
if (buffer == NULL)
{
fuse_reply_err (req, ENOMEM);