From: Nikolaus Rath Date: Fri, 9 Nov 2018 10:45:27 +0000 (+0000) Subject: Don't crash if mountpoint is not specified. X-Git-Tag: fuse-3.4.1~14 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=30415af0dc538f7b7e864773230c2bb74d28f985;p=qemu-gpiodev%2Flibfuse.git Don't crash if mountpoint is not specified. Fixes: #319. --- diff --git a/example/passthrough_ll.c b/example/passthrough_ll.c index db4a3f3..4091395 100644 --- a/example/passthrough_ll.c +++ b/example/passthrough_ll.c @@ -1189,6 +1189,13 @@ int main(int argc, char *argv[]) goto err_out1; } + if(opts.mountpoint == NULL) { + printf("usage: %s [options] \n", argv[0]); + printf(" %s --help\n", argv[0]); + ret = 1; + goto err_out1; + } + if (fuse_opt_parse(&args, &lo, lo_opts, NULL)== -1) return 1;