Skip to content

Commit

Permalink
Fixed issue accessing uninitialized buffer under certain conditions.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimitri van Heesch committed Mar 8, 2015
1 parent e9983f6 commit 49f6c63
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/definition.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -897,6 +897,7 @@ QCString Definition::getSourceAnchor() const
{
const int maxAnchorStrLen = 20;
char anchorStr[maxAnchorStrLen];
anchorStr[0]='\0';
if (m_impl->body && m_impl->body->startLine!=-1)
{
if (Htags::useHtags)
Expand Down

0 comments on commit 49f6c63

Please sign in to comment.