From: kamaljeet Date: Thu, 20 Sep 2018 10:04:00 +0000 (+0530) Subject: Fixed Svace issue X-Git-Tag: accepted/tizen/5.0/unified/20181102.030101^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cf0510eb36fc4bd99e356f951aae814ecc831597;p=platform%2Fupstream%2Fuw-imap-toolkit.git Fixed Svace issue Fixed svace issue WGID:385826 Change-Id: I2efb0cc29544a5432b40d4cc4eb047f5ec2a11d6 Signed-off-by: kamaljeet --- 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)) &&