From 34f74fdc7182006d69e5971b1f8ca0f7b78f571f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20Hentschel?= Date: Sat, 3 Nov 2012 17:25:52 +0100 Subject: [PATCH] riched20: Remove duplicate operand in expression (coverity). --- dlls/riched20/writer.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/dlls/riched20/writer.c b/dlls/riched20/writer.c index a5e5d509cb3..653eab63444 100644 --- a/dlls/riched20/writer.c +++ b/dlls/riched20/writer.c @@ -251,11 +251,8 @@ ME_StreamOutRTFFontAndColorTbl(ME_OutStream *pStream, ME_DisplayItem *pFirstRun, } while (item); item = ME_GetParagraph(pFirstRun); do { - if (item->member.para.pCell && item->member.para.pCell) + if ((pCell = item->member.para.pCell)) { - pCell = item->member.para.pCell; - if (pCell) - { ME_Border* borders[4] = { &pCell->member.cell.border.top, &pCell->member.cell.border.left, &pCell->member.cell.border.bottom, @@ -275,7 +272,6 @@ ME_StreamOutRTFFontAndColorTbl(ME_OutStream *pStream, ME_DisplayItem *pFirstRun, } } } - } } if (item == pLastPara) break; -- 2.11.4.GIT