Fix error reading from the wrong msg object

This commit is contained in:
2024-03-03 16:35:14 -05:00
parent b99513c8b3
commit bdf9fc7718

View File

@@ -33,7 +33,7 @@ int main(int argc, char **argv) {
zmsg_send(&msg, daemon);
zmsg_t *rep = zmsg_recv(daemon);
char *res = zmsg_popstr(msg);
char *res = zmsg_popstr(rep);
printf("Res:\n%s\n", res);
zmsg_destroy(&msg);