Browse Source
Merge pull request #924 from trapexit/varinit-master
properly initialize fuse_buf in worker loop
pull/926/head
trapexit
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
libfuse/lib/fuse_loop_mt.c
|
@ -79,8 +79,8 @@ fuse_do_work(void *data) |
|
|
struct fuse_buf fbuf; |
|
|
struct fuse_buf fbuf; |
|
|
struct fuse_chan *ch = mt->prevch; |
|
|
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); |
|
|
pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, NULL); |
|
|
res = fuse_session_receive_buf(mt->se, &fbuf, &ch); |
|
|
res = fuse_session_receive_buf(mt->se, &fbuf, &ch); |
|
|