]> git.cworth.org Git - notmuch/commit
lib: return "" rather than NULL from notmuch_thread_get_authors
authorDavid Bremner <david@tethera.net>
Fri, 15 Dec 2017 02:29:57 +0000 (22:29 -0400)
committerDavid Bremner <david@tethera.net>
Thu, 21 Dec 2017 13:22:30 +0000 (09:22 -0400)
commit7cfa1c69610bcf15fb47868131d3d9102f899225
tree1e86f76b0c8cb10db1aca5763933c334e6846d9d
parent8e1c3fa5bba1434077df2f5a81ed6588468f9eb9
lib: return "" rather than NULL from notmuch_thread_get_authors

The current behaviour is at best under-documented. The modified test in
T470-missing-headers.sh previously relied on printf doing the right
thing with NULL, which seems icky.

The use of talloc_strdup here is probably overkill, but it avoids
having to enforce that thread->authors is never mutated outside
_resolve_thread_authors_string.
lib/thread.cc
test/T470-missing-headers.sh