diff options
Diffstat (limited to 'lib/config.cc')
-rw-r--r-- | lib/config.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/config.cc b/lib/config.cc index 6993e67f..483a02ef 100644 --- a/lib/config.cc +++ b/lib/config.cc @@ -496,5 +496,8 @@ notmuch_config_set (notmuch_database_t *notmuch, notmuch_config_key_t key, const void _notmuch_config_cache (notmuch_database_t *notmuch, notmuch_config_key_t key, const char *val) { + if (notmuch->config == NULL) + notmuch->config = _notmuch_string_map_create (notmuch); + _notmuch_string_map_set (notmuch->config, _notmuch_config_key_to_string (key), val); } |