Commit 9399b0ea authored by Denis Krjuchkov's avatar Denis Krjuchkov

ConfigFile.cxx: use FOpenMode

parent 17dca254
......@@ -271,7 +271,7 @@ ReadConfigFile(ConfigData &config_data, const Path &path, GError **error_r)
g_debug("loading file %s", path_utf8.c_str());
FILE *fp = FOpen(path, "r");
FILE *fp = FOpen(path, FOpenMode::ReadText);
if (fp == nullptr) {
g_set_error(error_r, config_quark(), errno,
"Failed to open %s: %s",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment