]> git.notmuchmail.org Git - notmuch/blobdiff - lib/indexopts.c
emacs: Add new option notmuch-search-hide-excluded
[notmuch] / lib / indexopts.c
index 1e8d180e8af7bdf54d784b46876e5b843f111c62..2ffd19424ea9752d2976a2438c6214c63dba5e41 100644 (file)
 
 #include "notmuch-private.h"
 
+struct _notmuch_indexopts {
+    _notmuch_crypto_t crypto;
+};
+
 notmuch_indexopts_t *
 notmuch_database_get_default_indexopts (notmuch_database_t *db)
 {
@@ -31,8 +35,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"))) ||