From 901d4c98109c6c7572983d2d69ccb82d0b679d8c Mon Sep 17 00:00:00 2001 From: David Buckley Date: Sat, 2 Jan 2021 23:36:52 -0500 Subject: remove unnecessary malloc --- fs/tabfs.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/tabfs.c b/fs/tabfs.c index 90895f2..84e9ce8 100644 --- a/fs/tabfs.c +++ b/fs/tabfs.c @@ -214,8 +214,7 @@ static struct fuse_operations tabfs_filesystem_operations = { int main(int argc, char **argv) { char* mountdir = getenv("TABFS_MOUNT_DIR"); if (mountdir == NULL) { - mountdir = malloc(sizeof(char)*4); - sprintf(mountdir, "mnt"); + mountdir = "mnt"; } char killcmd[1000]; -- cgit v1.2.3