Skip to content

Commit e633112

Browse files
committed
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.
1 parent 2b2deeb commit e633112

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doxygen.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2446,7 +2446,7 @@ static bool isVarWithConstructor(const Entry *root)
24462446
result=FALSE;
24472447
goto done;
24482448
}
2449-
else if (fd->name().right(2)==".c" || fd->name().right(2)==".h")
2449+
else if ((fd != nullptr) && (fd->name().right(2)==".c" || fd->name().right(2)==".h"))
24502450
{ // inside a .c file
24512451
result=FALSE;
24522452
goto done;

0 commit comments

Comments
 (0)