Skip to content

Commit 02d1e28

Browse files
committed
Fixed potential bug. Missing node adding on RecS item matching.
1 parent 9af49b0 commit 02d1e28

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/maincli.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,13 @@ int main(int argc, char* argv[])
109109

110110
for (size_t recs = 0; recs < m->RecS.size(); recs++)
111111
{
112-
// test all recs
113-
found = (std::find(nodes.begin(), nodes.end(), nodename) != nodes.end());
112+
std::string rx_node_name = m->RecS[recs];
114113

115-
if (!found)
114+
// test all recs
115+
if (std::find(nodes.begin(), nodes.end(), rx_node_name) == nodes.end())
116116
{
117-
nodes.push_back(nodename);
117+
// New node name, put it in the node collection
118+
nodes.push_back(rx_node_name);
118119
}
119120
}
120121
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy