From e19f31a9fc9f0d16487d9aa32853913c1db41d36 Mon Sep 17 00:00:00 2001 From: Krishna Kant Jaju Date: Thu, 22 Sep 2022 20:36:40 +0530 Subject: [PATCH] Coverity issue resolved Change-Id: If802fe5bad2794a58a17d53b719474cd2a095e25 Signed-off-by: Krishna Kant Jaju --- imap-2007e/c-client/utf8aux.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/imap-2007e/c-client/utf8aux.c b/imap-2007e/c-client/utf8aux.c index 5138987..6ed7cfa 100755 --- a/imap-2007e/c-client/utf8aux.c +++ b/imap-2007e/c-client/utf8aux.c @@ -41,9 +41,9 @@ static void utf8_stringlist (STRINGLIST *st,char *charset) SIZEDTEXT txt; /* convert entire stringstruct */ if (st) do if (utf8_text (&st->text,charset,&txt,U8T_CANONICAL)) { - fs_give ((void **) &st->text.data); st->text.data = txt.data; /* transfer this text */ st->text.size = txt.size; + fs_give ((void **) &st->text.data); } while (st = st->next); } @@ -72,9 +72,9 @@ void utf8_searchpgm (SEARCHPGM *pgm,char *charset) hl->line.size = txt.size; } if (utf8_text (&hl->text,charset,&txt,U8T_CANONICAL)) { - fs_give ((void **) &hl->text.data); hl->text.data = txt.data; hl->text.size = txt.size; + fs_give ((void **) &hl->text.data); } } utf8_stringlist (pgm->body,charset); -- 2.7.4