Skip to content

Commit 446de7e

Browse files
committed
fix: double sample create init
1 parent a067109 commit 446de7e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/session/subscription.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,7 @@ int8_t _z_trigger_subscriptions(_z_session_t *zn, const _z_keyexpr_t keyexpr, co
162162
_zp_session_unlock_mutex(zn);
163163

164164
// Build the sample
165-
_z_sample_t sample = _z_sample_null();
166-
sample = _z_sample_create(&key, payload, timestamp, encoding, kind, qos, attachment);
165+
_z_sample_t sample = _z_sample_create(&key, payload, timestamp, encoding, kind, qos, attachment);
167166
// Parse subscription list
168167
_z_subscription_rc_list_t *xs = subs;
169168
_Z_DEBUG("Triggering %ju subs", (uintmax_t)_z_subscription_rc_list_len(xs));

0 commit comments

Comments
 (0)