Browse Source

properly initialize fuse_buf in worker loop

pull/924/head
Antonio SJ Musumeci 3 years ago
parent
commit
80f30999fa
  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