Skip to content

Commit

Permalink
integration tests should pass now
Browse files Browse the repository at this point in the history
  • Loading branch information
p-avital committed Aug 25, 2023
1 parent ee98b25 commit 4ebace5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/api/api.c
Original file line number Diff line number Diff line change
Expand Up @@ -940,13 +940,14 @@ z_query_reply_options_t z_query_reply_options_default(void) {

int8_t z_query_reply(const z_query_t *query, const z_keyexpr_t keyexpr, const uint8_t *payload, size_t payload_len,
const z_query_reply_options_t *options) {
z_query_reply_options_t opts = options == NULL ? z_query_reply_options_default() : *options;
_z_value_t value = {.payload =
{
.start = payload,
._is_alloc = false,
.len = payload_len,
},
.encoding = {.prefix = options->encoding.prefix, .suffix = options->encoding.suffix}};
.encoding = {.prefix = opts.encoding.prefix, .suffix = opts.encoding.suffix}};
return _z_send_reply(query, keyexpr, value);
}

Expand Down

0 comments on commit 4ebace5

Please sign in to comment.