X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Fgetthreadid.c;fp=sbr%2Fgetthreadid.c;h=abac78d74f2471c56c3049f7e30f460ee621e907;hp=a1ad7a0e99ab032bacd70ce2245655c7e3862c01;hb=fc888ece449bca0362696d561cb0887b128e045d;hpb=82d4bcc8b86574c2e3cbe1b01cefc66a509947b8 diff --git a/sbr/getthreadid.c b/sbr/getthreadid.c index a1ad7a0..abac78d 100644 --- a/sbr/getthreadid.c +++ b/sbr/getthreadid.c @@ -54,8 +54,11 @@ threadid(char *msgid, char *referens) } start = strchr(threadfrom, '<'); + if (!start) { + return NULL; + } end = strchr(start, '>'); - if (!(*start) || !(*end)) { + if (!end) { return NULL; } *end = '\0';