Jani Nikula <jani@nikula.org> writes: > > This should just return 1 or something. See how the function eventually > returns res != NOTMUCH_STATUS_SUCCESS instead of notmuch_status_t. And > threads == NULL is not guaranteed to mean an exception occurred anyway. > > Otherwise the patch LGTM, and is in line with the error handling in > notmuch search, which does not segfault on similar queries. pushed a version amended as suggested. d