1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
Author: Andreas Beckmann <anbe@debian.org>
Description: fix "ordered comparison of pointer with integer zero"
--- a/cuneiform_src/Kern/ced/sources/main/ced_func_rtf.cpp
+++ b/cuneiform_src/Kern/ced/sources/main/ced_func_rtf.cpp
@@ -212,7 +212,7 @@ Bool32 CEDPage::FormattedWriteRtf(const
}
*/
// write the text lines
- for (;sect>0;sect=sect->next)
+ for (;sect;sect=sect->next)
{
if (!WriteRtfSection(rtf,sect)) goto WRITE_END; //write section properties
// int sectNum=0;
@@ -897,7 +897,7 @@ Bool WriteRtfCharFmt(struct StrRtfOut fa
// if (curChar->fontNum>=rtf->page->fontsUsed || (prevChar&&prevChar->fontNum>=rtf->page->fontsUsed)) return TRUE;
// extract value for comparison
- if (prevChar>0) {
+ if (prevChar) {
// lstrcpy(PrevTypeFace,TerFont[PrevFont].TypeFace);
PrevFamily=rtf->table[rtf->page->GetFontByNum(prevChar->fontNum)];
PrevStyle=prevChar->fontAttribs;
|