Skip to content

Commit

Permalink
fix: double sample create init
Browse files Browse the repository at this point in the history
  • Loading branch information
jean-roland committed Jul 2, 2024
1 parent a067109 commit 446de7e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/session/subscription.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,7 @@ int8_t _z_trigger_subscriptions(_z_session_t *zn, const _z_keyexpr_t keyexpr, co
_zp_session_unlock_mutex(zn);

// Build the sample
_z_sample_t sample = _z_sample_null();
sample = _z_sample_create(&key, payload, timestamp, encoding, kind, qos, attachment);
_z_sample_t sample = _z_sample_create(&key, payload, timestamp, encoding, kind, qos, attachment);
// Parse subscription list
_z_subscription_rc_list_t *xs = subs;
_Z_DEBUG("Triggering %ju subs", (uintmax_t)_z_subscription_rc_list_len(xs));
Expand Down

0 comments on commit 446de7e

Please sign in to comment.