Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion zcm/blocking.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ zcm_sub_t* zcm_blocking_t::subscribe(const string& channel,
sub->usr = usr;
sub->regex = isRegexChannel(channel);
if (sub->regex) {
sub->regexobj = (void*) new std::regex(sub->channel);
sub->regexobj = (void*) new std::regex(channel);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

channel is the complete string. sub->channel has been truncated at ZCM_CHANNEL_MAXLEN. Note that just below here the sub is stored in a map using channel as the key.

ZCM_ASSERT(sub->regexobj);
subsRegex[channel].push_back(sub);
} else {
Expand Down
Loading