X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=lib%2Findexopts.c;h=4a8608586a356c083ed8ad35e70fe8882fa21a25;hb=afe85e65786df1df9abf261393b4b4e6e2e86009;hp=1e8d180e8af7bdf54d784b46876e5b843f111c62;hpb=1979145b91fa85d6952b94db561a46238265d910;p=notmuch diff --git a/lib/indexopts.c b/lib/indexopts.c index 1e8d180e..4a860858 100644 --- a/lib/indexopts.c +++ b/lib/indexopts.c @@ -31,8 +31,9 @@ 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 ret; + return NULL; if (decrypt_policy) { if ((! (strcasecmp (decrypt_policy, "true"))) ||