diff options
author | David Buckley <david@davidbuckley.ca> | 2021-01-02 23:36:52 -0500 |
---|---|---|
committer | David Buckley <david@davidbuckley.ca> | 2021-01-02 23:36:52 -0500 |
commit | 901d4c98109c6c7572983d2d69ccb82d0b679d8c (patch) | |
tree | b48a82609afde9a2a45c07118cb1db9b6a7569a3 /fs | |
parent | 9f38203ebfb18995ac120646f3d1999b9109bdca (diff) |
remove unnecessary malloc
Diffstat (limited to 'fs')
-rw-r--r-- | fs/tabfs.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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]; |