diff options
author | Nikolaus Rath <Nikolaus@rath.org> | 2018-11-23 17:12:43 +0000 |
---|---|---|
committer | Nikolaus Rath <Nikolaus@rath.org> | 2018-11-24 20:51:34 +0000 |
commit | 59dc22b12f323aee41315ff82f358482f78bfd5f (patch) | |
tree | 410a91982e9add53b025e4d2c29a09daf8a9b117 /example | |
parent | 97c94cec9f54eb6757186de1ccdeec1b3ce35cb1 (diff) | |
download | libfuse-59dc22b12f323aee41315ff82f358482f78bfd5f.tar.gz |
Don't segfault when called with -h.
Fixes: #327
Diffstat (limited to 'example')
-rw-r--r-- | example/hello.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/example/hello.c b/example/hello.c index 57d3ecd..f307bf2 100644 --- a/example/hello.c +++ b/example/hello.c @@ -170,7 +170,7 @@ int main(int argc, char *argv[]) if (options.show_help) { show_help(argv[0]); assert(fuse_opt_add_arg(&args, "--help") == 0); - args.argv[0] = (char*) ""; + args.argv[0][0] = '\0'; } ret = fuse_main(args.argc, args.argv, &hello_oper, NULL); |