From d86e03c786ec51e2ca4af4e7c756cd19adbe17a8 Mon Sep 17 00:00:00 2001 From: Kevin Boulain Date: Mon, 27 Feb 2023 13:06:29 +0100 Subject: [PATCH] lib/notmuch: update example Likely missed in 86cbd215e, when notmuch_query_search_messages_st was renamed to notmuch_query_search_messages. --- lib/notmuch.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/notmuch.h b/lib/notmuch.h index ce375c04..89018392 100644 --- a/lib/notmuch.h +++ b/lib/notmuch.h @@ -1172,7 +1172,10 @@ notmuch_query_search_threads_st (notmuch_query_t *query, notmuch_threads_t **out * * query = notmuch_query_create (database, query_string); * - * for (messages = notmuch_query_search_messages (query); + * if (notmuch_query_search_messages (query, &messages) != NOTMUCH_STATUS_SUCCESS) + * return EXIT_FAILURE; + * + * for (; * notmuch_messages_valid (messages); * notmuch_messages_move_to_next (messages)) * {