aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorDavid Buckley <david@davidbuckley.ca>2021-01-02 23:36:52 -0500
committerDavid Buckley <david@davidbuckley.ca>2021-01-02 23:36:52 -0500
commit901d4c98109c6c7572983d2d69ccb82d0b679d8c (patch)
treeb48a82609afde9a2a45c07118cb1db9b6a7569a3 /fs
parent9f38203ebfb18995ac120646f3d1999b9109bdca (diff)
remove unnecessary malloc
Diffstat (limited to 'fs')
-rw-r--r--fs/tabfs.c3
1 files changed, 1 insertions, 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];