Fix potential bad memory access, thanks to Eike
This commit is contained in:
parent
62b589b4cd
commit
7c82b7f51a
|
@ -512,7 +512,7 @@ bool cmDocumentation::CreateSingleModule(const char* fname,
|
||||||
if(line.size() && line[0] == '#')
|
if(line.size() && line[0] == '#')
|
||||||
{
|
{
|
||||||
/* line beginnings with ## are mark-up ignore them */
|
/* line beginnings with ## are mark-up ignore them */
|
||||||
if (line[1] == '#') continue;
|
if (line.size()>=2 && line[1] == '#') continue;
|
||||||
// blank line
|
// blank line
|
||||||
if(line.size() <= 2)
|
if(line.size() <= 2)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue