Browse Source

Merge pull request #924 from trapexit/varinit-master

properly initialize fuse_buf in worker loop
pull/926/head
trapexit 3 years ago
committed by GitHub
parent
commit
859b4da3dc
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      libfuse/lib/fuse_loop_mt.c

4
libfuse/lib/fuse_loop_mt.c

@ -79,8 +79,8 @@ fuse_do_work(void *data)
struct fuse_buf fbuf;
struct fuse_chan *ch = mt->prevch;
fbuf.mem = w->buf;
fbuf.size = w->bufsize;
fbuf = (struct fuse_buf){ .mem = w->buf,
.size = w->bufsize };
pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, NULL);
res = fuse_session_receive_buf(mt->se, &fbuf, &ch);

Loading…
Cancel
Save