We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1754669 commit 78c7c90Copy full SHA for 78c7c90
1 file changed
examples/viewer/viewer.cc
@@ -151,8 +151,7 @@ static std::string GetBaseDir(const std::string& filepath) {
151
152
static bool FileExists(const std::string& abs_filename) {
153
bool ret;
154
- FILE* fp;
155
- fopen_s(&fp, abs_filename.c_str(), "rb");
+ FILE* fp = fopen(abs_filename.c_str(), "rb");
156
if (fp) {
157
ret = true;
158
fclose(fp);
0 commit comments