projects
/
qemu-gpiodev
/
libfuse.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
97c94ce
)
Don't segfault when called with -h.
author
Nikolaus Rath
<Nikolaus@rath.org>
Fri, 23 Nov 2018 17:12:43 +0000
(17:12 +0000)
committer
Nikolaus Rath
<Nikolaus@rath.org>
Sat, 24 Nov 2018 20:51:34 +0000
(20:51 +0000)
Fixes: #327
example/hello.c
patch
|
blob
|
history
diff --git
a/example/hello.c
b/example/hello.c
index 57d3ecdc4ea38d0c53161fdaa6da3223b4b55206..f307bf2d865ba55637acaded4cc0b7ee24da9961 100644
(file)
--- 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);