aboutsummaryrefslogtreecommitdiffstats
path: root/lib/mount.c
diff options
context:
space:
mode:
authorMiklos Szeredi <miklos@szeredi.hu>2001-10-31 14:52:35 +0000
committerMiklos Szeredi <miklos@szeredi.hu>2001-10-31 14:52:35 +0000
commit5e183482b09cec20f54ccb44e767a7fab51833e9 (patch)
treecfadb38331eb258eb129d28627f5f999fa3c5e99 /lib/mount.c
parent19dff1ba9dfe6f474d22224267a7407c949d6803 (diff)
downloadlibfuse-5e183482b09cec20f54ccb44e767a7fab51833e9.tar.gz
x
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;
}