aboutsummaryrefslogtreecommitdiffstats
path: root/lib/mount.c
diff options
context:
space:
mode:
authorMiklos Szeredi <miklos@szeredi.hu>2005-11-10 09:54:41 +0000
committerMiklos Szeredi <miklos@szeredi.hu>2005-11-10 09:54:41 +0000
commitbcc5385cc146c45bfe08e8351e3dcdd1d6354fee (patch)
tree6c9660f734255bb655c97bb81441fdfcccb71c5b /lib/mount.c
parent4ec0681e0576c6892f7d919d14bf6188c728b9f8 (diff)
downloadlibfuse-bcc5385cc146c45bfe08e8351e3dcdd1d6354fee.tar.gz
fix
Diffstat (limited to 'lib/mount.c')
-rw-r--r--lib/mount.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/mount.c b/lib/mount.c
index f7a5299..62e2b4a 100644
--- a/lib/mount.c
+++ b/lib/mount.c
@@ -86,6 +86,11 @@ int fuse_mount(const char *mountpoint, const char *opts)
int res;
int rv;
+ if (!mountpoint) {
+ fprintf(stderr, "fuse: missing mountpoint\n");
+ return -1;
+ }
+
res = socketpair(PF_UNIX, SOCK_STREAM, 0, fds);
if(res == -1) {
perror("fuse: socketpair() failed");