Skip to content

Commit

Permalink
Merge pull request #671 from eclipse-zenoh/fix-uninit-closure-and-han…
Browse files Browse the repository at this point in the history
…dler

Fix uninit Handler and Closure in `z_pull`
  • Loading branch information
Mallets authored Sep 11, 2024
2 parents 0e28305 + 708bbfe commit a59ae52
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/z_pull.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,9 @@ int main(int argc, char** argv) {
exit(-1);
}

z_owned_ring_handler_sample_t handler;
z_owned_closure_sample_t closure;
z_owned_ring_handler_sample_t handler;
z_ring_channel_sample_new(&closure, &handler, 3);

printf("Declaring Subscriber on '%s'...\n", args.keyexpr);
z_view_keyexpr_t ke;
Expand Down

0 comments on commit a59ae52

Please sign in to comment.