projects
/
notmuch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e2341cb
)
get_timestamp: Ensure that return value is 0 in case of exception.
author
Carl Worth
<cworth@cworth.org>
Sun, 22 Nov 2009 02:55:39 +0000
(
03:55
+0100)
committer
Carl Worth
<cworth@cworth.org>
Sun, 22 Nov 2009 02:55:39 +0000
(
03:55
+0100)
Just to be on the safe side of things.
lib/database.cc
patch
|
blob
|
history
diff --git
a/lib/database.cc
b/lib/database.cc
index bcea88b029e7a097a7887c7570e5715e7a78fc76..169dc5e20df424c67b9db2a092597f299bbc1959 100644
(file)
--- 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;
}