Avoid segfault on message with no subject.

It's fun how turning a program loose on 500,000 messages will find
lots of littel corner cases.
This commit is contained in:
Carl Worth 2009-10-14 17:24:28 -07:00
parent d643f7d776
commit 914df660c4

View file

@ -253,6 +253,9 @@ skip_re_in_subject (const char *subject)
{
const char *s = subject;
if (subject == NULL)
return NULL;
while (*s) {
while (*s && isspace (*s))
s++;