diff options
Diffstat (limited to '')
-rw-r--r-- | src/storage/plugins/NfsStorage.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/storage/plugins/NfsStorage.cxx b/src/storage/plugins/NfsStorage.cxx index e8ac23ec0..2c331dde6 100644 --- a/src/storage/plugins/NfsStorage.cxx +++ b/src/storage/plugins/NfsStorage.cxx @@ -82,10 +82,9 @@ public: static std::string UriToNfsPath(const char *uri_utf8) { - std::string path(uri_utf8); - /* libnfs paths must begin with a slash */ - path.insert(path.begin(), '/'); + std::string path("/"); + path.append(uri_utf8); return path; } |