X-Git-Url: https://git.cworth.org/git?p=notmuch;a=blobdiff_plain;f=lib%2Fnotmuch.h;fp=lib%2Fnotmuch.h;h=890183920ba4c2ee4f6cb973c690b5cf63480016;hp=ce375c042746f99532e75fd038bbd6ba9635bcf6;hb=d86e03c786ec51e2ca4af4e7c756cd19adbe17a8;hpb=48d774bbf4dc6e442e1be96aab712947b408fc5a 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)) * {