X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=lib%2Fconfig.cc;h=8f6ef110788fe174def7c9014ad6be2cba3eff9c;hb=64212c7b91cdb7e65a2a28f994f8d060a50ae78c;hp=7a2882dea2360a87ba3bc511c0cdd3c829de20aa;hpb=63b4c469835133ac44b7db516fc54b8a4abb90a8;p=notmuch diff --git a/lib/config.cc b/lib/config.cc index 7a2882de..8f6ef110 100644 --- a/lib/config.cc +++ b/lib/config.cc @@ -658,6 +658,9 @@ _notmuch_config_load_defaults (notmuch_database_t *notmuch) { notmuch_config_key_t key; + if (notmuch->config == NULL) + notmuch->config = _notmuch_string_map_create (notmuch); + for (key = NOTMUCH_CONFIG_FIRST; key < NOTMUCH_CONFIG_LAST; key = notmuch_config_key_t (key + 1)) {