From cf0510eb36fc4bd99e356f951aae814ecc831597 Mon Sep 17 00:00:00 2001 From: kamaljeet Date: Thu, 20 Sep 2018 15:34:00 +0530 Subject: [PATCH] Fixed Svace issue Fixed svace issue WGID:385826 Change-Id: I2efb0cc29544a5432b40d4cc4eb047f5ec2a11d6 Signed-off-by: kamaljeet --- imap-2007e/c-client/imap4r1.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/imap-2007e/c-client/imap4r1.c b/imap-2007e/c-client/imap4r1.c index 8002332..18b0cf3 100755 --- a/imap-2007e/c-client/imap4r1.c +++ b/imap-2007e/c-client/imap4r1.c @@ -6088,8 +6088,10 @@ void imap_parse_capabilities (MAILSTREAM *stream,char *t) THREADER *thread = (THREADER *) fs_get (sizeof (THREADER)); thread->name = cpystr (s); thread->dispatch = NIL; - thread->next = LOCAL->cap.threader; - LOCAL->cap.threader = thread; + if (LOCAL->cap.threader) { + thread->next = LOCAL->cap.threader; + LOCAL->cap.threader = thread; + } } else if (!compare_cstring (t,"AUTH")) { if ((i = mail_lookup_auth_name (s,LOCAL->authflags)) && -- 2.7.4