[core] Fix android-cloexec-fopen warning
Detected by clang-tidy-8.
This commit is contained in:
@@ -15,7 +15,7 @@ IOException::IOException(int err, const std::string& msg)
|
||||
}
|
||||
|
||||
void write_file(const std::string &filename, const std::string &data) {
|
||||
FILE *fd = fopen(filename.c_str(), "wb");
|
||||
FILE *fd = fopen(filename.c_str(), "wbe");
|
||||
if (fd) {
|
||||
fwrite(data.data(), sizeof(std::string::value_type), data.size(), fd);
|
||||
fclose(fd);
|
||||
|
||||
Reference in New Issue
Block a user