aboutsummaryrefslogtreecommitdiffstats
path: root/lib/mount.c
diff options
context:
space:
mode:
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");