diff options
author | Danny Al-Gaaf <danny.al-gaaf@bisect.de> | 2013-02-25 15:28:37 +0100 |
---|---|---|
committer | Danny Al-Gaaf <danny.al-gaaf@bisect.de> | 2013-02-25 15:28:37 +0100 |
commit | 6ae10fe7fcd95423759003db81a0436c82f3ade0 (patch) | |
tree | ddfa33f492b829ef4bd6d638491433671ad0bb9d | |
parent | 350481f90fc5abaa60cfa986160efb19c27b4af3 (diff) | |
download | ceph-6ae10fe7fcd95423759003db81a0436c82f3ade0.tar.gz |
Client.cc: don't pass c_str() if std::string is expected
Don't pass c_str() to _lookup(). The function expect a std::string
as second parameter.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
-rw-r--r-- | src/client/Client.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/Client.cc b/src/client/Client.cc index 9f1f9aa5d34..697804431aa 100644 --- a/src/client/Client.cc +++ b/src/client/Client.cc @@ -3900,7 +3900,7 @@ int Client::path_walk(const filepath& origpath, Inode **final, bool followsym) ldout(cct, 10) << " " << i << " " << *cur << " " << dname << dendl; ldout(cct, 20) << " (path is " << path << ")" << dendl; Inode *next; - int r = _lookup(cur, dname.c_str(), &next); + int r = _lookup(cur, dname, &next); if (r < 0) return r; // only follow trailing symlink if followsym. always follow |