If use_async == 0 and rs_accept() passes (i.e. non negative value), then the return value from the function was uninitialized.
Signed-off-by: Dotan Barak <dot...@dev.mellanox.co.il> Reviewed-by: Yishai Hadas <yish...@mellanox.com> --- examples/rstream.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/examples/rstream.c b/examples/rstream.c index 1d221d0..6ef60a1 100644 --- a/examples/rstream.c +++ b/examples/rstream.c @@ -444,7 +444,7 @@ free: static int server_connect(void) { struct pollfd fds; - int ret; + int ret = 0; set_options(lrs); do { -- 1.7.8.2 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html