summaryrefslogtreecommitdiff
path: root/test/missing-headers
AgeCommit message (Collapse)Author
2012-08-12sprinters: bugfix when NULL passed for a string.Mark Walters
The string function in a sprinter may be called with a NULL string pointer (eg if a header is absent). This causes a segfault. We fix this by checking for a null pointer in the string functions and update the sprinter documentation. At the moment some output when format=text is done directly rather than via an sprinter: in that case a null pointer is passed to printf or similar and a "(null)" appears in the output. That behaviour is not changed in this patch.
2012-08-12test: Add test for messages with missing headersAustin Clements
Currently the JSON tests for search and show are broken because notmuch attempts to dereference a NULL pointer.