Skip to content

Commit

Permalink
properly initialize fuse_buf in worker loop
Browse files Browse the repository at this point in the history
  • Loading branch information
trapexit committed Jun 20, 2021
1 parent ed0c1db commit bcd5fde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libfuse/lib/fuse_loop_mt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit bcd5fde

Please sign in to comment.