Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit

Permalink
initialize variable to silence compiler warning (#232)
Browse files Browse the repository at this point in the history
  • Loading branch information
wjwwood authored Jun 19, 2017
1 parent 37eab60 commit 363ffcf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rmw_connext_shared_cpp/src/shared_functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1075,7 +1075,7 @@ _demangle_service_from_topic(const std::string & topic_name)
"Request",
};
std::string found_suffix;
size_t suffix_position;
size_t suffix_position = std::string::npos;
for (auto suffix : suffixes) {
suffix_position = topic_name.rfind(suffix);
if (suffix_position != std::string::npos) {
Expand Down Expand Up @@ -1118,7 +1118,7 @@ _demangle_service_type_only(const std::string & dds_type_name)
std::string("_Request_"),
};
std::string found_suffix = "";
size_t suffix_position = 0;
size_t suffix_position = std::string::npos;
for (auto suffix : suffixes) {
suffix_position = dds_type_name.rfind(suffix);
if (suffix_position != std::string::npos) {
Expand Down

0 comments on commit 363ffcf

Please sign in to comment.