After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 590518 - member variable not initialized in constructor addon/doxmlparser/basehandler.h
member variable not initialized in constructor addon/doxmlparser/basehandler.h
Status: RESOLVED FIXED
Product: doxygen
Classification: Other
Component: general
unspecified
Other All
: Normal minor
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
Depends on:
Blocks:
 
 
Reported: 2009-08-02 10:59 UTC by Ettl Martin
Modified: 2012-11-18 11:13 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Ettl Martin 2009-08-02 10:59:32 UTC
Please describe the problem:
i have checked the sources with the static code analysis tool cppcheck. I found out that the member variable m_skipCount is not initialized in constructor of class BaseHandler().

Take a look at the sourcode:

    BaseHandler() : m_delegateHandler(0), m_fallBackHandler(0)
    {
    }

As you can see, the member variable m_skipCount is not intialized

A possible solution might be:

    BaseHandler() : m_delegateHandler(0), m_fallBackHandler(0) , m_skipCount(0)
    {
    }

Steps to reproduce:
1. call cppcheck -a -s -f -j2 -q -v doxygen-source


Actual results:


Expected results:
no error

Does this happen every time?


Other information:
Comment 1 Dimitri van Heesch 2012-07-09 18:26:19 UTC
Thanks, I'll include the fix in the next update.
Comment 2 Dimitri van Heesch 2012-07-12 15:41:54 UTC
This bug was previously marked ASSIGNED, which means it should be fixed in
doxygen version 1.8.1.2. Please verify if this is indeed the case. Reopen the
bug if you think it is not fixed and please include any additional information
that you think can be relevant.