mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-25 18:11:33 +08:00
bugfix
This commit is contained in:
parent
a9fb96e088
commit
d58432ff56
@ -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
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user