diff options
author | Carl Worth <cworth@cworth.org> | 2010-04-24 07:25:12 -0700 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2010-04-24 07:27:50 -0700 |
commit | 138fd38afe6c6d44179952dd17c4b07e9223ad37 (patch) | |
tree | d972839e6578e4170b2503995c923b94657e7eac /lib/notmuch.h | |
parent | e3e0e26806cf95cddd4dfb11c24d1ecd15171110 (diff) |
lib: Ensure notmuch_query_search_messages returns NULL on an exception.
Previously, this function may have segfaulted immediately after
reporting the exception.
Diffstat (limited to 'lib/notmuch.h')
-rw-r--r-- | lib/notmuch.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/notmuch.h b/lib/notmuch.h index 54616336..505ad19f 100644 --- a/lib/notmuch.h +++ b/lib/notmuch.h @@ -439,6 +439,8 @@ notmuch_query_search_threads (notmuch_query_t *query); * notmuch_messages_t object. (For consistency, we do provide a * notmuch_messages_destroy function, but there's no good * reason to call it if the query is about to be destroyed). + * + * If a Xapian exception occurs this function will return NULL. */ notmuch_messages_t * notmuch_query_search_messages (notmuch_query_t *query); |