summaryrefslogtreecommitdiffstats
path: root/src/sqlite3gen.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2019-06-17 19:09:11 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2019-06-17 19:09:11 (GMT)
commitcd81aa200a31e486e61fe701e4a782ed929e90c2 (patch)
tree60c06b9104c39e41594c496d3f5549af889d7f3d /src/sqlite3gen.cpp
parent4628578fe856f3ccfe3ade8f702671bfa1854566 (diff)
downloadDoxygen-cd81aa200a31e486e61fe701e4a782ed929e90c2.zip
Doxygen-cd81aa200a31e486e61fe701e4a782ed929e90c2.tar.gz
Doxygen-cd81aa200a31e486e61fe701e4a782ed929e90c2.tar.bz2
Avoid calling non-const member aliases and 0 pointer dereference in sqlite3
Diffstat (limited to 'src/sqlite3gen.cpp')
-rw-r--r--src/sqlite3gen.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/sqlite3gen.cpp b/src/sqlite3gen.cpp
index 9805d7f..5a8e81d 100644
--- a/src/sqlite3gen.cpp
+++ b/src/sqlite3gen.cpp
@@ -2009,7 +2009,11 @@ static void generateSqlite3ForClass(const ClassDef *cd)
if (nm.isEmpty() && ii->fileDef) nm = ii->fileDef->docName();
if (!nm.isEmpty())
{
- int header_id=insertPath(ii->fileDef->absFilePath(),!ii->fileDef->isReference());
+ int header_id=-1;
+ if (ii->fileDef)
+ {
+ insertPath(ii->fileDef->absFilePath(),!ii->fileDef->isReference());
+ }
DBG_CTX(("-----> ClassDef includeInfo for %s\n", nm.data()));
DBG_CTX((" local : %d\n", ii->local));
DBG_CTX((" imported : %d\n", ii->imported));