Fix trivial mistake in DiskWebServer

This commit is contained in:
Alexey Milovidov 2021-09-25 01:33:17 +03:00
parent 1fb4942fed
commit 4a44bcaced
2 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@ void DiskWebServer::initialize(const String & uri_path) const
ReadWriteBufferFromHTTP::OutStreamCallback(),
ConnectionTimeouts::getHTTPTimeouts(getContext()));
String file_name;
FileData file_data;
FileData file_data{};
String dir_name = fs::path(uri_path.substr(url.size())) / "";
LOG_TRACE(&Poco::Logger::get("DiskWeb"), "Adding directory: {}", dir_name);

View File

@ -186,7 +186,7 @@ private:
struct FileData
{
FileType type;
size_t size;
size_t size = 0;
};
using Files = std::unordered_map<String, FileData>; /// file path -> file data