unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* Possible bug in notmuch_thread_get_authors ?
@ 2017-11-27  8:06 Róman Joost
  2017-11-28 12:32 ` David Bremner
  2017-12-15  2:29 ` [PATCH] lib: return "" rather than NULL from notmuch_thread_get_authors David Bremner
  0 siblings, 2 replies; 6+ messages in thread
From: Róman Joost @ 2017-11-27  8:06 UTC (permalink / raw)
  To: notmuch

[-- Attachment #1: Type: text/plain, Size: 644 bytes --]

Hi,

we're currently working on Haskell bindings for notmuch[1] and stumbled
over an oddity in relation to the function notmuch_thread_get_authors in
that it can be NULL.

Checking other bindings it seems there is an explicit check for NULL and
we're wondering if that is really necessary.  Perhaps a patch could
initialize `*authors` in the _resolve_thread_authors_string function to an
empty string OR at least mention it in the API documentation that the
return value can be NULL?

Any thoughts?

[1] - https://github.com/purebred-mua/hs-notmuch

Kind Regards,
-- 
Róman Joost
email: roman@bromeco.de
GPG key: 3A765B52

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-12-21 13:43 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-27  8:06 Possible bug in notmuch_thread_get_authors ? Róman Joost
2017-11-28 12:32 ` David Bremner
2017-12-15  2:29 ` [PATCH] lib: return "" rather than NULL from notmuch_thread_get_authors David Bremner
2017-12-15 21:54   ` Róman Joost
2017-12-20 20:25   ` Tomi Ollila
2017-12-21 13:43     ` David Bremner

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).