Fix segfault in case of the database lock not being available.

We were nicely reporting the lock-aquisition failure, but then marching
along trying to use the database object and just crashing badly.
So don't do that.
This commit is contained in:
Carl Worth 2009-10-27 23:57:37 -07:00
parent 5eaec1e316
commit 07aa759b68

View 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: