summaryrefslogtreecommitdiffstats
path: root/src/sqlite3gen.cpp
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2018-11-05 11:07:47 (GMT)
committeralbert-github <albert.tests@gmail.com>2018-11-05 11:07:47 (GMT)
commitefc33490c36cb7c21955901ce0abccc343c0c7b3 (patch)
tree2fc45af19faf44cf990dd8fbad665f6deea5f162 /src/sqlite3gen.cpp
parent9440d7ce0b31749b6bbb13e70e2f7ed501505c7e (diff)
downloadDoxygen-efc33490c36cb7c21955901ce0abccc343c0c7b3.zip
Doxygen-efc33490c36cb7c21955901ce0abccc343c0c7b3.tar.gz
Doxygen-efc33490c36cb7c21955901ce0abccc343c0c7b3.tar.bz2
issue_6597 SIGSEGV presumably caused by C++ "using" declaration
Crash appears in in the autogen / permod and sqlite3 code generation. In the xml code generation the problem does not appear due to the protection against the NULL pointer. Added protection on the other places as well
Diffstat (limited to 'src/sqlite3gen.cpp')
-rw-r--r--src/sqlite3gen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sqlite3gen.cpp b/src/sqlite3gen.cpp
index a7d7f21..a7b8dbb 100644
--- a/src/sqlite3gen.cpp
+++ b/src/sqlite3gen.cpp
@@ -1017,7 +1017,7 @@ static void insertMemberFunctionParams(int memberdef_id, const MemberDef *md, co
{
ArgumentList *declAl = md->declArgumentList();
ArgumentList *defAl = md->argumentList();
- if (declAl!=0 && declAl->count()>0)
+ if (declAl!=0 && defAl!=0 && declAl->count()>0)
{
ArgumentListIterator declAli(*declAl);
ArgumentListIterator defAli(*defAl);