mirror of
https://github.com/neovim/neovim.git
synced 2024-12-23 12:45:17 -07:00
fix(clangd): set block pointer to null in case map is empty
This commit is contained in:
parent
1027ccac6d
commit
cdd8017469
@ -391,7 +391,7 @@ int mf_sync(memfile_T *mfp, int flags)
|
||||
// Then we only try to write blocks within the existing file. If that also
|
||||
// fails then we give up.
|
||||
int status = OK;
|
||||
bhdr_T *hp;
|
||||
bhdr_T *hp = NULL;
|
||||
// note, "last" block is typically earlier in the hash list
|
||||
map_foreach_value(&mfp->mf_hash, hp, {
|
||||
if (((flags & MFS_ALL) || hp->bh_bnum >= 0)
|
||||
|
Loading…
Reference in New Issue
Block a user