lib: make notmuch_threads_valid return FALSE when passed NULL
authorDavid Bremner <david@tethera.net>
Thu, 23 Jan 2014 12:24:00 +0000 (08:24 -0400)
committerDavid Bremner <david@tethera.net>
Sat, 25 Jan 2014 00:20:54 +0000 (20:20 -0400)
commit29f125212619ebca8621dd2106b412b22e1b6d22
tree550c0182e597d81890aaf8ad7d128e58d7be83b7
parent5c526d1737212dd736b1c3fedc6bf5b3493ce436
lib: make notmuch_threads_valid return FALSE when passed NULL

Without this patch, the example code in the header docs crashes for certain
invalid queries (see id:871u00oimv.fsf@approx.mit.edu)
lib/notmuch.h
lib/query.cc