]> git.notmuchmail.org Git - notmuch/blobdiff - lib/config.cc
lib: remove "path" from notmuch struct
[notmuch] / lib / config.cc
index 6993e67f5ba4fdc59a25150926cdce84b49f34b0..483a02efac8c3287df6fae66f83211e92da7bb9a 100644 (file)
@@ -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);
 }