X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=lib%2Fconfig.cc;h=483a02efac8c3287df6fae66f83211e92da7bb9a;hp=6993e67f5ba4fdc59a25150926cdce84b49f34b0;hb=6251e2bb9ee023d25b58384c8a49576086fdaba3;hpb=1383481d4a7cee3b59f354a203090c966a2a635e 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); }