From f0cd15ec64427f30f5de00c69ddc5c52eb388f15 Mon Sep 17 00:00:00 2001 From: Stephane Thiell Date: Mon, 4 Feb 2019 14:46:29 -0800 Subject: [PATCH] create_directory: do not redeclare variable buf --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index c995309..6885394 100644 --- a/main.c +++ b/main.c @@ -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;