diff options
Diffstat (limited to 'examples/amqp_listen.c')
-rw-r--r-- | examples/amqp_listen.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/amqp_listen.c b/examples/amqp_listen.c index 6025e5c..ba7d80a 100644 --- a/examples/amqp_listen.c +++ b/examples/amqp_listen.c @@ -101,7 +101,8 @@ int main(int argc, char const * const *argv) { die_on_amqp_error(amqp_get_rpc_reply(conn), "Declaring queue"); queuename = amqp_bytes_malloc_dup(r->queue); if (queuename.bytes == NULL) { - die_on_error(-ENOMEM, "Copying queue name"); + fprintf(stderr, "Out of memory while copying queue name"); + return 1; } } |