diff options
author | albert-github <albert.tests@gmail.com> | 2018-12-04 12:17:19 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2018-12-04 12:17:19 (GMT) |
commit | 62f8c5346b2f3ea492404ae85942a0de4b091c71 (patch) | |
tree | 981b5da8d3dbaddabbb8d959364c9385b3e443d2 /src | |
parent | c4b853d749fcaffb2f2c142dcd14e48ab049013e (diff) | |
download | Doxygen-62f8c5346b2f3ea492404ae85942a0de4b091c71.zip Doxygen-62f8c5346b2f3ea492404ae85942a0de4b091c71.tar.gz Doxygen-62f8c5346b2f3ea492404ae85942a0de4b091c71.tar.bz2 |
issue #6657 "QGDict::hashAsciiKey: Invalid null key" when using anonymous union/struct
Protect findAt against empty string.
Diffstat (limited to 'src')
-rw-r--r-- | src/groupdef.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/groupdef.cpp b/src/groupdef.cpp index e918b1f..9df3ae1 100644 --- a/src/groupdef.cpp +++ b/src/groupdef.cpp @@ -170,7 +170,8 @@ bool GroupDef::addClass(const ClassDef *cd) // add nested classes (e.g. A::B, A::C) after their parent (A) in // order of insertion QCString scope = qn.left(i); - int j=classSDict->findAt(scope); + int j=-1; + if (!scope.isEmpty()) j=classSDict->findAt(scope); if (j!=-1) { while (j<(int)classSDict->count() && |