Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit02d1e28

Browse files
committed
Fixed potential bug. Missing node adding on RecS item matching.
1 parent9af49b0 commit02d1e28

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)

[8]ページ先頭

©2009-2025 Movatter.jp