]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
Client.cc: don't pass c_str() if std::string is expected 71/head
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Mon, 25 Feb 2013 14:28:37 +0000 (15:28 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Mon, 25 Feb 2013 14:28:37 +0000 (15:28 +0100)
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>
src/client/Client.cc

index 9f1f9aa5d34ce23e92733a321868b3d7962e2320..697804431aaa15f383f5e899f86d770ed89d5643 100644 (file)
@@ -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