X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=lib%2Findexopts.c;h=1e8d180e8af7bdf54d784b46876e5b843f111c62;hp=82a0026f0d46b47d46e94407d2271df978bd90db;hb=HEAD;hpb=31dab9b1cd66c7f285fe86021f66940f679325d4 diff --git a/lib/indexopts.c b/lib/indexopts.c index 82a0026f..2ffd1942 100644 --- a/lib/indexopts.c +++ b/lib/indexopts.c @@ -20,6 +20,10 @@ #include "notmuch-private.h" +struct _notmuch_indexopts { + _notmuch_crypto_t crypto; +}; + notmuch_indexopts_t * notmuch_database_get_default_indexopts (notmuch_database_t *db) { @@ -31,6 +35,7 @@ notmuch_database_get_default_indexopts (notmuch_database_t *db) char *decrypt_policy; notmuch_status_t err = notmuch_database_get_config (db, "index.decrypt", &decrypt_policy); + if (err) return NULL;