From bcc5385cc146c45bfe08e8351e3dcdd1d6354fee Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Thu, 10 Nov 2005 09:54:41 +0000 Subject: fix --- lib/mount.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/mount.c') 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"); -- cgit v1.2.3