[PATCH 2/2] lib: fix error handling
David Bremner
david at tethera.net
Sat Jan 18 16:09:21 PST 2014
Tomi Valkeinen <tomi.valkeinen at iki.fi> writes:
> Currently if a Xapian exception happens in notmuch_message_get_header,
> the exception is not caught leading to crash. In
> notmuch_message_get_date the exception is caught, but an internal error
> is raised, again leading to crash.
>
> This patch fixes the error handling by making both functions catch the
> Xapian exceptions, print an error and return NULL or 0.
pushed,
thanks
d
More information about the notmuch
mailing list