aboutsummaryrefslogtreecommitdiffstats
path: root/lib/mount.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mount.c')
-rw-r--r--lib/mount.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mount.c b/lib/mount.c
index ace3c65..48d9d45 100644
--- a/lib/mount.c
+++ b/lib/mount.c
@@ -103,7 +103,6 @@ int fuse_mount(struct fuse *f, const char *dir)
if(f->dir != NULL)
return 0;
- f->dir = g_strdup(dir);
f->fd = open(dev, O_RDWR);
if(f->fd == -1) {
perror(dev);
@@ -115,6 +114,7 @@ int fuse_mount(struct fuse *f, const char *dir)
return -1;
add_mntent(dev, dir, type);
+ f->dir = g_strdup(dir);
return 0;
}