]> git.cworth.org Git - notmuch/commitdiff
lib/notmuch: update example
authorKevin Boulain <kevin@boula.in>
Mon, 27 Feb 2023 12:06:29 +0000 (13:06 +0100)
committerDavid Bremner <david@tethera.net>
Mon, 27 Feb 2023 12:34:38 +0000 (08:34 -0400)
Likely missed in 86cbd215e, when notmuch_query_search_messages_st was
renamed to notmuch_query_search_messages.

lib/notmuch.h

index ce375c042746f99532e75fd038bbd6ba9635bcf6..890183920ba4c2ee4f6cb973c690b5cf63480016 100644 (file)
@@ -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))
  *     {