shada: Avoid “conditional … depends on initialized value” error

Error can be seen in some errors_spec.lua tests.
This commit is contained in:
ZyX
2015-08-13 21:26:30 +03:00
parent 1889ee329f
commit 9b53acffb5

View File

@@ -3978,8 +3978,10 @@ shada_read_next_item_hist_no_conv:
entry->type = (ShadaEntryType) type_u64;
ret = kSDReadStatusSuccess;
shada_read_next_item_end:
if (buf != NULL) {
msgpack_unpacked_destroy(&unpacked);
xfree(buf);
}
return ret;
shada_read_next_item_error:
entry->type = (ShadaEntryType) type_u64;