Merge pull request #924 from trapexit/varinit-master

properly initialize fuse_buf in worker loop
This commit is contained in:
trapexit 2021-06-20 17:40:12 -04:00 committed by GitHub
commit 859b4da3dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);