Skip to content

Commit

Permalink
Bug 736022 - [PATCH] Fix potential null pointer dereference in src/in…
Browse files Browse the repository at this point in the history
…dex.cpp
  • Loading branch information
Dimitri van Heesch committed Sep 23, 2014
1 parent 79dedb6 commit 68c063c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/dot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1095,7 +1095,7 @@ bool DotFilePatcher::run()
// mapId,m_patchFile.data(),map->mapFile.data());
if (!writeVecGfxFigure(t,map->label,map->mapFile))
{
err("problem writing Gfx %d figure!\n",t);
err("problem writing FIG %d figure!\n",mapId);
return FALSE;
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/index.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -923,9 +923,9 @@ static int countClassesInTreeList(const ClassSDict &cl)
{
int count=0;
ClassSDict::Iterator cli(cl);
for (;cli.current(); ++cli)
ClassDef *cd;
for (;(cd=cli.current());++cli)
{
ClassDef *cd=cli.current();
if (!hasVisibleRoot(cd->baseClasses())) // filter on root classes
{
if (cd->isVisibleInHierarchy()) // should it be visible
Expand Down
4 changes: 2 additions & 2 deletions src/translator_tw.h
Original file line number Diff line number Diff line change
Expand Up @@ -1947,7 +1947,7 @@ class TranslatorChinesetraditional : public Translator
return result;
}
/** UNO IDL service page */
virtual QCString trServiceGeneratedFromFiles(bool single)
virtual QCString trServiceGeneratedFromFiles(bool)
{
// single is true implies a single file
QCString result=(QCString)"本服務的文件由以下的檔案"
Expand All @@ -1956,7 +1956,7 @@ class TranslatorChinesetraditional : public Translator
return result;
}
/** UNO IDL singleton page */
virtual QCString trSingletonGeneratedFromFiles(bool single)
virtual QCString trSingletonGeneratedFromFiles(bool)
{
// single is true implies a single file
QCString result=(QCString)"本singleton的文件由下面的檔案"
Expand Down

0 comments on commit 68c063c

Please sign in to comment.