mirror of
https://github.com/containers/fuse-overlayfs.git
synced 2025-09-10 07:44:54 -04:00
main: use malloc instead of calloc
the memory will be overwritten. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
parent
605e17fbf7
commit
c5bfc0ba87
2
main.c
2
main.c
@ -1857,7 +1857,7 @@ ovl_do_readdir (fuse_req_t req, fuse_ino_t ino, size_t size,
|
|||||||
char *p;
|
char *p;
|
||||||
cleanup_free char *buffer = NULL;
|
cleanup_free char *buffer = NULL;
|
||||||
|
|
||||||
buffer = calloc (size, 1);
|
buffer = malloc (size);
|
||||||
if (buffer == NULL)
|
if (buffer == NULL)
|
||||||
{
|
{
|
||||||
fuse_reply_err (req, ENOMEM);
|
fuse_reply_err (req, ENOMEM);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user