Use of uninitialised variable in classdef.cpp:2627

"Michael McTernan" <[email protected]>
Newsgroups gmane.text.doxygen.devel
Message-ID <005a01c5d655$91800e60$52161bac@MM1laptop>
Hi,

Another from valgrind and the doxygen-1.4.4-20050815.tar.gz CVS tarball.

classdef.cpp:50:

// constructs a new class definition
ClassDef::ClassDef(
    const char *defFileName,int defLine,
    const char *nm,CompoundType ct,
    const char *lref,const char *fName,
    bool isSymbol)
 :
Definition(defFileName,defLine,removeRedundantWhiteSpace(nm),0,0,isSymbol)
{
  m_compType=ct;
  QCString compoundName=compoundTypeString(); 

  ...

Unfortunately compoundTypeString() does the following:

if (m_compType==Interface && m_isObjC) return "class";


Unlike m_compType, m_isObjC hasn't yet been setup.

Cheers,

Mike



-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.