summaryrefslogtreecommitdiffstats
path: root/src/doxygen.cpp
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2020-10-29 12:04:29 (GMT)
committeralbert-github <albert.tests@gmail.com>2020-10-29 12:04:29 (GMT)
commite63311276e13bbd8ac304ba914bf14022fc1af40 (patch)
tree895cc8a9fc33a70f15a0c8a47e0c463b492b2e58 /src/doxygen.cpp
parent2b2deebc054c7278f59db234024cd96f03aeadf3 (diff)
downloadDoxygen-e63311276e13bbd8ac304ba914bf14022fc1af40.zip
Doxygen-e63311276e13bbd8ac304ba914bf14022fc1af40.tar.gz
Doxygen-e63311276e13bbd8ac304ba914bf14022fc1af40.tar.bz2
issue #8139 Segfault after a8bf5d3
As indicated in the issue the proposed fix fixes OP's problem (according to his initial tests) as well as the problem in the CGAL documentation.
Diffstat (limited to 'src/doxygen.cpp')
-rw-r--r--src/doxygen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doxygen.cpp b/src/doxygen.cpp
index b459a4b..05937fe 100644
--- a/src/doxygen.cpp
+++ b/src/doxygen.cpp
@@ -2446,7 +2446,7 @@ static bool isVarWithConstructor(const Entry *root)
result=FALSE;
goto done;
}
- else if (fd->name().right(2)==".c" || fd->name().right(2)==".h")
+ else if ((fd != nullptr) && (fd->name().right(2)==".c" || fd->name().right(2)==".h"))
{ // inside a .c file
result=FALSE;
goto done;