mirror of
https://github.com/osnr/TabFS.git
synced 2024-05-07 16:16:34 +02:00
remove unnecessary malloc
This commit is contained in:
parent
9f38203ebf
commit
901d4c9810
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue