diff --git a/test/filesystem_test.cpp b/test/filesystem_test.cpp index 7341752..e864622 100644 --- a/test/filesystem_test.cpp +++ b/test/filesystem_test.cpp @@ -119,9 +119,9 @@ struct StringMaker { std::time_t t = to_time_t(value); std::tm* ptm = std::localtime(&t); + std::ostringstream os; if (ptm) { std::tm ttm = *ptm; - std::ostringstream os; os << std::put_time(&ttm, "%Y-%m-%d %H:%M:%S"); } else {