From d58432ff56331d6492fe0a415cb0b6098a7ba88d Mon Sep 17 00:00:00 2001 From: gabime Date: Sat, 12 Dec 2015 20:56:14 +0200 Subject: [PATCH] bugfix --- include/spdlog/details/os.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/spdlog/details/os.h b/include/spdlog/details/os.h index 94f17af8..c814223e 100644 --- a/include/spdlog/details/os.h +++ b/include/spdlog/details/os.h @@ -150,7 +150,7 @@ inline bool file_exists(const std::string& filename) return (attribs != INVALID_FILE_ATTRIBUTES && !(attribs & FILE_ATTRIBUTE_DIRECTORY)); #else struct stat buffer; - return (stat (name.c_str(), &buffer) == 0); + return (stat (filename.c_str(), &buffer) == 0); #endif }