Skip to content

Commit a05ec3e

Browse files
fix potential nullptr in mapping
1 parent c52279e commit a05ec3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Modbus_TCP_Client_poll.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Client_Poll::Client_Poll(const std::string &host,
5656

5757
// use mapping for all client ids
5858
for (std::size_t i = 0; i < MAX_CLIENT_IDS; ++i) {
59-
this->mappings[i] = mapping;
59+
this->mappings[i] = mb_mapping;
6060
}
6161

6262
listen();

0 commit comments

Comments
 (0)