summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2020-10-29 12:11:06 (GMT)
committerGitHub <noreply@github.com>2020-10-29 12:11:06 (GMT)
commit34792e9871354e5d750ae7990b6038740b57dbf3 (patch)
tree895cc8a9fc33a70f15a0c8a47e0c463b492b2e58
parent2b2deebc054c7278f59db234024cd96f03aeadf3 (diff)
parente63311276e13bbd8ac304ba914bf14022fc1af40 (diff)
downloadDoxygen-34792e9871354e5d750ae7990b6038740b57dbf3.zip
Doxygen-34792e9871354e5d750ae7990b6038740b57dbf3.tar.gz
Doxygen-34792e9871354e5d750ae7990b6038740b57dbf3.tar.bz2
Merge pull request #8140 from albert-github/feature/issue_8139
issue #8139 Segfault after a8bf5d3
-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;