diff options
author | Denis Krjuchkov <denis@crazydev.net> | 2013-02-02 20:19:25 +0600 |
---|---|---|
committer | Denis Krjuchkov <denis@crazydev.net> | 2013-02-02 20:19:25 +0600 |
commit | 9399b0ea5279871262608d66f00b574be4a81268 (patch) | |
tree | 1a4791709d6722ea5646753eb90d3c48e72e23b1 | |
parent | 17dca254a3f451ffb1494375bbb3e67bc699d191 (diff) |
ConfigFile.cxx: use FOpenMode
-rw-r--r-- | src/ConfigFile.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ConfigFile.cxx b/src/ConfigFile.cxx index 695e7803e..e94f3f238 100644 --- a/src/ConfigFile.cxx +++ b/src/ConfigFile.cxx @@ -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", |