From: Danny Al-Gaaf Date: Mon, 25 Feb 2013 14:28:37 +0000 (+0100) Subject: Client.cc: don't pass c_str() if std::string is expected X-Git-Tag: v0.59~124^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=6ae10fe7fcd95423759003db81a0436c82f3ade0;p=ceph.git 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 --- diff --git a/src/client/Client.cc b/src/client/Client.cc index 9f1f9aa5d34ce..697804431aaa1 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