aboutsummaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorNikolaus Rath <Nikolaus@rath.org>2018-11-23 17:12:43 +0000
committerNikolaus Rath <Nikolaus@rath.org>2018-11-24 20:51:34 +0000
commit59dc22b12f323aee41315ff82f358482f78bfd5f (patch)
tree410a91982e9add53b025e4d2c29a09daf8a9b117 /example
parent97c94cec9f54eb6757186de1ccdeec1b3ce35cb1 (diff)
downloadlibfuse-59dc22b12f323aee41315ff82f358482f78bfd5f.tar.gz
Don't segfault when called with -h.
Fixes: #327
Diffstat (limited to 'example')
-rw-r--r--example/hello.c2
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);