summaryrefslogtreecommitdiffstats
path: root/src/sqlite3gen.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2013-07-02 13:57:36 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2013-07-02 13:57:36 (GMT)
commitf4719c307b07cbfa29800d4027a116ef4c907067 (patch)
treed1cc2598de29b6d36c3921716bbc7aef75e5de42 /src/sqlite3gen.cpp
parente4a5bed3582672d108024c90e41c71944dd814b4 (diff)
downloadDoxygen-f4719c307b07cbfa29800d4027a116ef4c907067.zip
Doxygen-f4719c307b07cbfa29800d4027a116ef4c907067.tar.gz
Doxygen-f4719c307b07cbfa29800d4027a116ef4c907067.tar.bz2
Fixed potential crash in sqlite3 support
Diffstat (limited to 'src/sqlite3gen.cpp')
-rw-r--r--src/sqlite3gen.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/sqlite3gen.cpp b/src/sqlite3gen.cpp
index 34a2db6..d748a12 100644
--- a/src/sqlite3gen.cpp
+++ b/src/sqlite3gen.cpp
@@ -1082,7 +1082,10 @@ static void generateSqlite3ForMember(sqlite3*db,MemberDef *md,Definition *def)
s->data(),
md->getBodyDef()->getDefFileName().data(),
md->getStartBodyLine()));
- insertMemberReference(db,md->anchor().data(),s->data(),md->getBodyDef()->getDefFileName().data(),md->getStartBodyLine(),1);
+ if (md->getBodyDef())
+ {
+ insertMemberReference(db,md->anchor().data(),s->data(),md->getBodyDef()->getDefFileName().data(),md->getStartBodyLine(),1);
+ }
s=l.next();
}
}