Fix potential bad memory access, thanks to Eike

This commit is contained in:
Eric NOULARD 2012-01-31 21:26:44 +01:00 committed by Rolf Eike Beer
parent 62b589b4cd
commit 7c82b7f51a
1 changed files with 1 additions and 1 deletions

View File

@ -512,7 +512,7 @@ bool cmDocumentation::CreateSingleModule(const char* fname,
if(line.size() && line[0] == '#')
{
/* line beginnings with ## are mark-up ignore them */
if (line[1] == '#') continue;
if (line.size()>=2 && line[1] == '#') continue;
// blank line
if(line.size() <= 2)
{