=?UTF-8?Q?Andr=C3=A9=20Hentschel=20?=: riched20: Remove duplicate operand in expression (coverity).
Alexandre Julliard
julliard at winehq.org
Mon Nov 5 13:32:23 CST 2012
Module: wine
Branch: master
Commit: 34f74fdc7182006d69e5971b1f8ca0f7b78f571f
URL: http://source.winehq.org/git/wine.git/?a=commit;h=34f74fdc7182006d69e5971b1f8ca0f7b78f571f
Author: André Hentschel <nerv at dawncrow.de>
Date: Sat Nov 3 17:25:52 2012 +0100
riched20: Remove duplicate operand in expression (coverity).
---
dlls/riched20/writer.c | 6 +-----
1 files changed, 1 insertions(+), 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;
More information about the wine-cvs
mailing list