riched20: Remove duplicate operand in expression (coverity)
André Hentschel
nerv at dawncrow.de
Sat Nov 3 11:25:52 CDT 2012
CID 712995
---
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 a5e5d50..653eab6 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;
--
1.8.0
--
Best Regards, André Hentschel
More information about the wine-patches
mailing list