mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 19:08:09 +01:00
get_timestamp: Ensure that return value is 0 in case of exception.
Just to be on the safe side of things.
This commit is contained in:
parent
e2341cbc09
commit
f336ee034b
1 changed files with 1 additions and 0 deletions
|
@ -648,6 +648,7 @@ notmuch_database_get_timestamp (notmuch_database_t *notmuch, const char *key)
|
||||||
|
|
||||||
ret = Xapian::sortable_unserialise (doc.get_value (NOTMUCH_VALUE_TIMESTAMP));
|
ret = Xapian::sortable_unserialise (doc.get_value (NOTMUCH_VALUE_TIMESTAMP));
|
||||||
} catch (Xapian::Error &error) {
|
} catch (Xapian::Error &error) {
|
||||||
|
ret = 0;
|
||||||
goto DONE;
|
goto DONE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue