diff options
author | Carl Worth <cworth@cworth.org> | 2009-11-22 03:55:39 +0100 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2009-11-22 03:55:39 +0100 |
commit | f336ee034be3c9518883dfb34db27529f4a4b83b (patch) | |
tree | 531a360cea2ced7fec25cd581a52a7f1858f422b | |
parent | e2341cbc09b503f996fd46b68f9d96ae6004025b (diff) |
get_timestamp: Ensure that return value is 0 in case of exception.
Just to be on the safe side of things.
-rw-r--r-- | lib/database.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/database.cc b/lib/database.cc index bcea88b0..169dc5e2 100644 --- a/lib/database.cc +++ b/lib/database.cc @@ -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)); } catch (Xapian::Error &error) { + ret = 0; goto DONE; } |