rps test: fix uninitialized value usage (coverity)
authorJulius Bünger <buenger@mytum.de>
Mon, 29 Jan 2018 17:46:54 +0000 (18:46 +0100)
committerJulius Bünger <buenger@mytum.de>
Mon, 29 Jan 2018 17:50:21 +0000 (18:50 +0100)
src/rps/test_rps.c

index d304adfe2140944e8346565b82c4b65b64e09106..4ef97ad925da7ebd1795ed5dd5a850787cbdeb70 100644 (file)
@@ -1534,8 +1534,8 @@ manage_service_wrapper (unsigned int i, unsigned int j,
                                                     &churn_cb,
                                                     entry,
                                                     (PEER_GO_OFFLINE == delta) ? 0 : 1);
+    rps_peers[j].entry_op_manage = entry;
   }
-  rps_peers[j].entry_op_manage = entry;
 }