summaryrefslogtreecommitdiffstats
path: root/thread.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>2003-04-11 11:50:39 +0000
committerThomas Roessler <roessler@does-not-exist.org>2003-04-11 11:50:39 +0000
commit71fe96eb922bdff139bac3010af0c6a7ca95452f (patch)
tree5b82928ff5d36a7b23f72361e7d85e03bdcc91ab /thread.c
parent3b1baad2d3943207cda9b7c630f21c829601ffab (diff)
Fix a segmentation fault.
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/thread.c b/thread.c
index bd45392f..1f0ad33e 100644
--- a/thread.c
+++ b/thread.c
@@ -1272,7 +1272,7 @@ int mutt_messages_in_thread (CONTEXT *ctx, HEADER *hdr, int flag)
THREAD *threads[2];
int i, rc;
- if ((Sort & SORT_MASK) != SORT_THREADS)
+ if ((Sort & SORT_MASK) != SORT_THREADS || !hdr->thread)
return (1);
threads[0] = hdr->thread;