diff options
| author | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2023-10-03 00:19:30 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-03 06:19:30 +0800 |
| commit | fd791db0ecebf5d5bf8922ba519f8dd4eef3c5e6 (patch) | |
| tree | 2feed1649c6cc6c15ce0eec05559484c023d15aa /src/nvim/os | |
| parent | eb1f0e8fcca756a00d287e23bf87554e0e7f6dfd (diff) | |
| download | rneovim-fd791db0ecebf5d5bf8922ba519f8dd4eef3c5e6.tar.gz rneovim-fd791db0ecebf5d5bf8922ba519f8dd4eef3c5e6.tar.bz2 rneovim-fd791db0ecebf5d5bf8922ba519f8dd4eef3c5e6.zip | |
fix: fix ASAN errors on clang 17 (#25469)
Diffstat (limited to 'src/nvim/os')
| -rw-r--r-- | src/nvim/os/fileio.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/os/fileio.c b/src/nvim/os/fileio.c index 846219f720..119a42f074 100644 --- a/src/nvim/os/fileio.c +++ b/src/nvim/os/fileio.c @@ -282,9 +282,10 @@ static char writebuf[kRWBufferSize]; /// /// @param[in,out] rv RBuffer instance used. /// @param[in,out] fp File to work with. -static void file_rb_write_full_cb(RBuffer *const rv, FileDescriptor *const fp) +static void file_rb_write_full_cb(RBuffer *const rv, void *const fp_in) FUNC_ATTR_NONNULL_ALL { + FileDescriptor *const fp = fp_in; assert(fp->wr); assert(rv->data == (void *)fp); if (rbuffer_size(rv) == 0) { |