From 3a839f7c3ad7a7c98204c9bc391b1053a887e941 Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Mon, 6 Jun 2005 09:23:45 -0400 Subject: [PATCH] BUG: Initialize the iterator to prevent seg-fault --- Source/CTest/cmCTestBuildHandler.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/CTest/cmCTestBuildHandler.cxx b/Source/CTest/cmCTestBuildHandler.cxx index e61498880..cd74635e9 100644 --- a/Source/CTest/cmCTestBuildHandler.cxx +++ b/Source/CTest/cmCTestBuildHandler.cxx @@ -165,6 +165,8 @@ cmCTestBuildHandler::cmCTestBuildHandler() m_MaxErrors = 50; m_MaxWarnings = 50; + m_LastErrorOrWarning = m_ErrorsAndWarnings.end(); + int cc; for ( cc = 0; cmCTestWarningErrorFileLine[cc].m_RegularExpressionString; ++ cc ) {