diff options
| author | David Bremner <david@tethera.net> | 2021-09-30 15:59:54 -0300 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2021-12-04 12:17:09 -0400 |
| commit | 18cdd21b8b2ef056062700607eade43909c32cd2 (patch) | |
| tree | 9aa1d32d40c23c74794c998bfa8cdcb93f4558c9 /lib/config.cc | |
| parent | 482bd3a46de34c5f6c5cae3696fd56ffdadc6299 (diff) | |
lib/config: use g_key_file_get_string to read config values
Unlike the previous g_key_file_get_value, this version processes
escape codes for whitespace and \. The remaining two broken tests from
the last commit are because "notmuch config get" treats every value as
a list, and thus the previously introduces stripping of leading
whitespace applies.
Diffstat (limited to 'lib/config.cc')
| -rw-r--r-- | lib/config.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/config.cc b/lib/config.cc index e502858d..7a2882de 100644 --- a/lib/config.cc +++ b/lib/config.cc @@ -435,7 +435,7 @@ _notmuch_config_load_from_file (notmuch_database_t *notmuch, for (gchar **keys_p = keys; *keys_p; keys_p++) { char *absolute_key = talloc_asprintf (notmuch, "%s.%s", *grp, *keys_p); char *normalized_val; - val = g_key_file_get_value (file, *grp, *keys_p, NULL); + val = g_key_file_get_string (file, *grp, *keys_p, NULL); if (! val) { status = NOTMUCH_STATUS_FILE_ERROR; goto DONE; |
