create_directory: do not redeclare variable buf

This commit is contained in:
Stephane Thiell 2019-02-04 14:46:29 -08:00
parent 6d269aa28e
commit f0cd15ec64

2
main.c
View File

@ -1737,7 +1737,7 @@ create_directory (struct ovl_data *lo, int dirfd, const char *name, const struct
if (ret == 0 && xattr_sfd >= 0)
{
const size_t buf_size = 1 << 20;
char *buf = malloc (buf_size);
buf = malloc (buf_size);
if (buf == NULL)
{
ret = -1;