mirror of
https://github.com/osnr/TabFS.git
synced 2024-05-19 14:06: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) {
|
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];
|
||||||
|
|
Loading…
Reference in a new issue