We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9af49b0 commit 02d1e28Copy full SHA for 02d1e28
src/maincli.cpp
@@ -109,12 +109,13 @@ int main(int argc, char* argv[])
109
110
for (size_t recs = 0; recs < m->RecS.size(); recs++)
111
{
112
- // test all recs
113
- found = (std::find(nodes.begin(), nodes.end(), nodename) != nodes.end());
+ std::string rx_node_name = m->RecS[recs];
114
115
- if (!found)
+ // test all recs
+ if (std::find(nodes.begin(), nodes.end(), rx_node_name) == nodes.end())
116
117
- nodes.push_back(nodename);
+ // New node name, put it in the node collection
118
+ nodes.push_back(rx_node_name);
119
}
120
121
0 commit comments