mirror of
https://github.com/neovim/neovim.git
synced 2025-10-05 01:16:31 +00:00
shada: Avoid “conditional … depends on initialized value” error
Error can be seen in some errors_spec.lua tests.
This commit is contained in:
@@ -3978,8 +3978,10 @@ shada_read_next_item_hist_no_conv:
|
|||||||
entry->type = (ShadaEntryType) type_u64;
|
entry->type = (ShadaEntryType) type_u64;
|
||||||
ret = kSDReadStatusSuccess;
|
ret = kSDReadStatusSuccess;
|
||||||
shada_read_next_item_end:
|
shada_read_next_item_end:
|
||||||
msgpack_unpacked_destroy(&unpacked);
|
if (buf != NULL) {
|
||||||
xfree(buf);
|
msgpack_unpacked_destroy(&unpacked);
|
||||||
|
xfree(buf);
|
||||||
|
}
|
||||||
return ret;
|
return ret;
|
||||||
shada_read_next_item_error:
|
shada_read_next_item_error:
|
||||||
entry->type = (ShadaEntryType) type_u64;
|
entry->type = (ShadaEntryType) type_u64;
|
||||||
|
Reference in New Issue
Block a user