mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-22 17:34:54 +01:00
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:
parent
5eaec1e316
commit
07aa759b68
1 changed files with 1 additions and 0 deletions
|
@ -489,6 +489,7 @@ notmuch_database_open (const char *path)
|
||||||
} catch (const Xapian::Error &error) {
|
} catch (const Xapian::Error &error) {
|
||||||
fprintf (stderr, "A Xapian exception occurred: %s\n",
|
fprintf (stderr, "A Xapian exception occurred: %s\n",
|
||||||
error.get_msg().c_str());
|
error.get_msg().c_str());
|
||||||
|
notmuch = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
DONE:
|
DONE:
|
||||||
|
|
Loading…
Reference in a new issue