From e63311276e13bbd8ac304ba914bf14022fc1af40 Mon Sep 17 00:00:00 2001 From: albert-github Date: Thu, 29 Oct 2020 13:04:29 +0100 Subject: 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. --- src/doxygen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v0.12