ConfigFile.cxx: use FOpenMode

This commit is contained in:
Denis Krjuchkov 2013-02-02 20:19:25 +06:00
parent 17dca254a3
commit 9399b0ea52

View File

@ -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",