NO-JIRA: Assert offset vs. body_data_buffer_count only when offset nonzero.
Prevents offset=0 and buffer_count=0 asserts.
@@ -2435,6 +2435,7 @@ int qd_message_body_data_buffers(qd_message_body_data_t *body_data, pn_raw_buffe
//
// Skip the buffer offset
//
+ if (offset > 0) {
assert(offset < qd_message_body_data_buffer_count(body_data));
while (offset > 0 && payload_len > 0) {
payload_len -= qd_buffer_size(buffer) - data_offset;
@@ -2442,6 +2443,7 @@ int qd_message_body_data_buffers(qd_message_body_data_t *body_data, pn_raw_buffe
data_offset = 0;
buffer = DEQ_NEXT(buffer);
}
+ }
//
// Fill the buffer array
