diff --git a/app/cmdline/src/command_handler.cpp b/app/cmdline/src/command_handler.cpp index 527017d..df7b4e9 100644 --- a/app/cmdline/src/command_handler.cpp +++ b/app/cmdline/src/command_handler.cpp @@ -595,7 +595,7 @@ void command_handler::size(const std::vector & args) ftp::file_size_reply reply = ftp_client_.get_file_size(remote_file); - const std::optional size = reply.get_size(); + const std::optional & size = reply.get_size(); if (size) { std::cout << size.value() << " bytes."<< std::endl;