remove unnecessary malloc

This commit is contained in:
David Buckley 2021-01-02 23:36:52 -05:00
parent 9f38203ebf
commit 901d4c9810

View file

@ -214,8 +214,7 @@ static struct fuse_operations tabfs_filesystem_operations = {
int main(int argc, char **argv) { int main(int argc, char **argv) {
char* mountdir = getenv("TABFS_MOUNT_DIR"); char* mountdir = getenv("TABFS_MOUNT_DIR");
if (mountdir == NULL) { if (mountdir == NULL) {
mountdir = malloc(sizeof(char)*4); mountdir = "mnt";
sprintf(mountdir, "mnt");
} }
char killcmd[1000]; char killcmd[1000];