uninitialized variable read

From: Patrick Lam (plam@plam.lcs.mit.edu)
Date: Tue May 28 2002 - 02:25:25 EDT

  • Next message: Joaquin Cuenca Abela: "Re: Font, layout units et al."

    valgrind complains about this fragment in fv_View.cpp (around line 5785)

            fp_Run* pRun = pBlock->findPointCoords(pos, m_bPointEOL, xPoint, yPoint, xPoint2, yPoint2, iPointHeight, bDirection);

    //
    // Detect if we have no Lines at the curren tpoint and bail out.
    //
            if(iPointHeight == 0)
            {
                    return NULL;
            }

    because iPointHeight isn't necessarily initialized by findPointCoords.
    I don't actually know what you are trying to do here, but this isn't it.

    pat



    This archive was generated by hypermail 2.1.4 : Tue May 28 2002 - 02:31:08 EDT