On Fri, May 14, 2021 at 10:06:11AM +0100, Richard W.M. Jones wrote:
+++ b/fuse/nbdfuse.c
@@ -151,6 +151,7 @@ main (int argc, char *argv[])
int64_t ssize;
const char *s;
struct fuse_args fuse_args = FUSE_ARGS_INIT (0, NULL);
+ struct fuse_loop_config fuse_loop_config;
FILE *fp;
for (;;) {
@@ -475,7 +476,10 @@ main (int argc, char *argv[])
}
/* Enter the main loop. */
- r = fuse_loop (fuse);
+ memset (&fuse_loop_config, 0, sizeof fuse_loop_config);
+ fuse_loop_config.clone_fd = 0;
Looks a bit funny right after the memset(,0), but it's not wrong to be
explicit.
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3266
Virtualization:
qemu.org |
libvirt.org