mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
Merge pull request #924 from trapexit/varinit-master
properly initialize fuse_buf in worker loop
This commit is contained in:
commit
859b4da3dc
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue