iovec-wrapper: make iovw_size() take NULL again

This partially reverts 267b16f33c.

We usually make xyz_size() take NULL, e.g. hashmap_size().
This commit is contained in:
Yu Watanabe
2026-05-12 15:33:21 +09:00
parent 2fcf963273
commit 58863bdaec
2 changed files with 4 additions and 1 deletions
+2 -1
View File
@@ -237,7 +237,8 @@ void iovw_rebase(struct iovec_wrapper *iovw, void *old, void *new) {
}
size_t iovw_size(const struct iovec_wrapper *iovw) {
assert(iovw);
if (iovw_isempty(iovw))
return 0;
return iovec_total_size(iovw->iovec, iovw->count);
}