Skip to content

Commit

Permalink
Initialize servlets iterator
Browse files Browse the repository at this point in the history
  • Loading branch information
cyshi committed Nov 30, 2016
1 parent 564b150 commit 293cb8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sofa/pbrpc/web_service.cc
Original file line number Diff line number Diff line change
Expand Up @@ -245,9 +245,9 @@ Servlet WebService::FindServlet(const std::string& path)
std::string real_path = FormatPath(path);
StringUtils::split(real_path, PATH_SPLITTER, &path_vec);
std::size_t path_len = real_path.size();
ServletMap::iterator map_it;
std::vector<std::string>::reverse_iterator vec_it = path_vec.rbegin();
ServletMapPtr servlets = GetServletPtr();
ServletMap::iterator map_it = servlets->end();
size_t sub_len = 0;
for (; vec_it != path_vec.rend(); ++vec_it)
{
Expand Down

0 comments on commit 293cb8e

Please sign in to comment.