Fix error reading from the wrong msg object
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user