]> git.notmuchmail.org Git - notmuch/blobdiff - database.cc
Fix segfault in case of the database lock not being available.
[notmuch] / database.cc
index 5555b0e317083b5ca5f68f65f5050530e6780cb4..71246eb456115ade91ee9b47b89629850ab32e11 100644 (file)
@@ -489,6 +489,7 @@ notmuch_database_open (const char *path)
     } catch (const Xapian::Error &error) {
        fprintf (stderr, "A Xapian exception occurred: %s\n",
                 error.get_msg().c_str());
+       notmuch = NULL;
     }
     
   DONE: