]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
fix(file-storage): Remove duplicate backslash from directory
authorJoel Rosdahl <joel@rosdahl.net>
Mon, 18 Jul 2022 13:10:46 +0000 (15:10 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Mon, 18 Jul 2022 13:10:46 +0000 (15:10 +0200)
src/storage/secondary/FileStorage.cpp

index 8807ab407117f8a03dc0d2aa02caa59f48b3bb22..b03dbf988805a6e3777496edb0368b6588e4aae3 100644 (file)
@@ -71,7 +71,7 @@ FileStorageBackend::FileStorageBackend(const Params& params)
 #ifdef _WIN32
   m_dir = util::replace_all(params.url.path(), "/", "\\");
   if (!host.empty()) {
-    m_dir = FMT("\\\\{}\\{}", host, m_dir);
+    m_dir = FMT("\\\\{}{}", host, m_dir);
   }
 #else
   if (!host.empty() && host != "localhost") {