From: Kevin Boulain Date: Mon, 27 Feb 2023 12:06:29 +0000 (+0100) Subject: lib/notmuch: update example X-Git-Tag: 0.38_rc0~50 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=d86e03c786ec51e2ca4af4e7c756cd19adbe17a8 lib/notmuch: update example Likely missed in 86cbd215e, when notmuch_query_search_messages_st was renamed to notmuch_query_search_messages. --- 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)) * {