notmuch-show: detect NULL pointer returned from notmuch_query_search_threads
authorDavid Bremner <david@tethera.net>
Thu, 23 Jan 2014 12:24:01 +0000 (08:24 -0400)
committerDavid Bremner <david@tethera.net>
Sat, 25 Jan 2014 00:24:11 +0000 (20:24 -0400)
commitecbb29e8cea404faab2ef55b06431942ee329941
treebc7ccf665dc7a9d34af486a9bc4c8b9374431f58
parent29f125212619ebca8621dd2106b412b22e1b6d22
notmuch-show: detect NULL pointer returned from notmuch_query_search_threads

We want to return an error status, not 0 or (worse) segfault.
notmuch-show.c
test/T520-show.sh