summaryrefslogtreecommitdiff
path: root/src/AuthConfigFactory.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2011-11-05 00:25:24 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2011-11-05 00:25:24 +0900
commit79876af88f0faa7e3b60bef02a3f21f7466c76ef (patch)
treeefff535c23bc9a4c24563ca628257f74c6c734b1 /src/AuthConfigFactory.cc
parent601ec0f44adcbf97e7566b64fa9677f3b117ae6e (diff)
Removed util::endsWith(a, b). Added util::iendsWith()
Diffstat (limited to 'src/AuthConfigFactory.cc')
-rw-r--r--src/AuthConfigFactory.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/AuthConfigFactory.cc b/src/AuthConfigFactory.cc
index 2ac2cde0..e8450269 100644
--- a/src/AuthConfigFactory.cc
+++ b/src/AuthConfigFactory.cc
@@ -215,7 +215,7 @@ AuthConfigFactory::BasicCred::BasicCred
user_(user), password_(password),
host_(host), port_(port), path_(path), activated_(activated)
{
- if(!util::endsWith(path_, "/")) {
+ if(path_.empty() || path_[path_.size()-1] != '/') {
path_ += "/";
}
}