diff --git a/examples/z_liveliness.c b/examples/z_liveliness.c index 1c2ba5e53..44a8db2fc 100644 --- a/examples/z_liveliness.c +++ b/examples/z_liveliness.c @@ -36,7 +36,7 @@ int main(int argc, char** argv) { printf("Opening session...\n"); z_owned_session_t s; - if (z_open(&s, z_move(config)), NULL) { + if (z_open(&s, z_move(config), NULL)) { printf("Unable to open session!\n"); exit(-1); } diff --git a/examples/z_query_sub.c b/examples/z_query_sub.c index 9002e427a..96ac2049f 100644 --- a/examples/z_query_sub.c +++ b/examples/z_query_sub.c @@ -43,7 +43,7 @@ int main(int argc, char** argv) { printf("Opening session...\n"); z_owned_session_t s; - if (z_open(&s, z_move(config)), NULL) { + if (z_open(&s, z_move(config), NULL)) { printf("Unable to open session!\n"); exit(-1); }