Files
ports/net/ucx/files/patch-src_ucs_datastruct_string__buffer.c
T
Generic Rikka c54c53fa0e net/ucx: Update 1.20.0 → 1.20.1
Changelog:
https://github.com/openucx/ucx/releases/tag/v1.20.1
https://github.com/openucx/ucx/blob/v1.20.1/NEWS

- Enable and pass gtest test suite.
- Fix warnings from portclippy.
- Improve formatting and alignment.

PR:		295984 294958 294959
Sponsored by:	UNIS Labs
Co-authored-by:	Vladimir Druzenko <vvd@FreeBSD.org>
MFH:		2026Q2
2026-06-13 22:07:46 +03:00

19 lines
801 B
C

--- src/ucs/datastruct/string_buffer.c.orig 2026-05-17 17:31:16 UTC
+++ src/ucs/datastruct/string_buffer.c
@@ -141,8 +141,13 @@ void ucs_string_buffer_append_iovec(ucs_string_buffer_
size_t iov_index;
for (iov_index = 0; iov_index < iovcnt; ++iov_index) {
- ucs_string_buffer_appendf(strb, "%p,%zu|", iov[iov_index].iov_base,
- iov[iov_index].iov_len);
+ if (iov[iov_index].iov_base == NULL) {
+ ucs_string_buffer_appendf(strb, "(nil),%zu|",
+ iov[iov_index].iov_len);
+ } else {
+ ucs_string_buffer_appendf(strb, "%p,%zu|", iov[iov_index].iov_base,
+ iov[iov_index].iov_len);
+ }
}
ucs_string_buffer_rtrim(strb, "|");
}