Skip to content

Commit 1eeb716

Browse files
andriymoroz-mlnxShuotian Cheng
authored andcommitted
[syncd]: Clear istringstream before reuse in saithrift case (sonic-net#190)
1 parent f02e667 commit 1eeb716

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

syncd/syncd.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1715,6 +1715,7 @@ void handlePortMap(const std::string& portMapFile)
17151715
std::string name, lanes, alias;
17161716
iss >> name >> lanes >> alias;
17171717

1718+
iss.clear();
17181719
iss.str(lanes);
17191720
std::string lane_str;
17201721
std::set<int> lane_set;

0 commit comments

Comments
 (0)