Fix for dchart's crash

From: Chad Thomas (cbthomas@610.med.uiuc.edu)
Date: Thu Dec 19 2002 - 18:15:15 EST

  • Next message: Dom Lachowicz: "Re: Fix for dchart's crash"

    I was seeing the same crash as David Chart. The below patch fixes it.
    I'm not sure if it's the right thing to do--I just initiallized the
    variable to NULL.

    --Chad (aka xtals_r_us)

    Index: fl_SectionLayout.cpp
    ===================================================================
    RCS file: /cvsroot/abi/src/text/fmt/xp/fl_SectionLayout.cpp,v
    retrieving revision 1.182
    diff -u -r1.182 fl_SectionLayout.cpp
    --- fl_SectionLayout.cpp 18 Dec 2002 19:21:28 -0000 1.182
    +++ fl_SectionLayout.cpp 19 Dec 2002 17:59:44 -0000
    @@ -1385,7 +1385,7 @@
     #endif
            }
     
    - const XML_Char * pszFootnoteLine;
    + const XML_Char * pszFootnoteLine = NULL;
            pSectionAP->getProperty("section-footnote-line-thickness",
    (const XML_Char *&)pszFootnoteLine);
            if (pszFootnoteLine && pszFootnoteLine[0])
            {





    This archive was generated by hypermail 2.1.4 : Thu Dec 19 2002 - 13:02:39 EST