X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=notmuch-show.c;h=2848c9c39372fcbad778231c625632119b8e4faa;hb=2494e61b9ee6bbab4ac017136d7c6ee0de19b26d;hp=667fbee822a8d8a71e14213d1c3c6fef8a0137c3;hpb=d447b694b498c3e18a22f1eb15139a798c6aab26;p=notmuch diff --git a/notmuch-show.c b/notmuch-show.c index 667fbee8..2848c9c3 100644 --- a/notmuch-show.c +++ b/notmuch-show.c @@ -1364,11 +1364,11 @@ notmuch_show_command (notmuch_database_t *notmuch, int argc, char *argv[]) return EXIT_FAILURE; } - query = notmuch_query_create (notmuch, query_string); - if (query == NULL) { - fprintf (stderr, "Out of memory\n"); + status = notmuch_query_create_with_syntax (notmuch, query_string, + shared_option_query_syntax (), + &query); + if (print_status_database ("notmuch show", notmuch, status)) return EXIT_FAILURE; - } notmuch_query_set_sort (query, sort);