Content-Length: 267533 | pFad | https://github.com/astand/c-coderdbc/commit/02d1e28b40b43a7b9356e237ccccec7f12612d4b

6E Fixed potential bug. Missing node adding on RecS item matching. · astand/c-coderdbc@02d1e28 · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/astand/c-coderdbc/commit/02d1e28b40b43a7b9356e237ccccec7f12612d4b

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy