Fixed Svace issue 71/189771/4 accepted/tizen_5.0_unified tizen_5.0 accepted/tizen/5.0/unified/20181102.030101 accepted/tizen/unified/20181012.083455 submit/tizen/20181010.042311 submit/tizen_5.0/20181101.000008
authorkamaljeet <kamal.jc@samsung.com>
Thu, 20 Sep 2018 10:04:00 +0000 (15:34 +0530)
committerrandeep singh <randeep.s@samsung.com>
Thu, 27 Sep 2018 11:35:38 +0000 (11:35 +0000)
Fixed svace issue WGID:385826

Change-Id: I2efb0cc29544a5432b40d4cc4eb047f5ec2a11d6
Signed-off-by: kamaljeet <kamal.jc@samsung.com>
imap-2007e/c-client/imap4r1.c

index 8002332..18b0cf3 100755 (executable)
@@ -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)) &&