summaryrefslogtreecommitdiff
path: root/Ivy/Regexp.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Ivy/Regexp.cxx')
-rw-r--r--Ivy/Regexp.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Ivy/Regexp.cxx b/Ivy/Regexp.cxx
index 5916ec8..4dc1823 100644
--- a/Ivy/Regexp.cxx
+++ b/Ivy/Regexp.cxx
@@ -255,7 +255,8 @@ void CRegErrorHandler::ClearErrorString() const
const char * CRegErrorHandler::FindErr( int id )
{
- for ( struct regErr * perr = errors; perr->m_id != REGERR_SENTINEL_VALUE; perr++ )
+ struct regErr * perr;
+ for ( perr = errors; perr->m_id != REGERR_SENTINEL_VALUE; perr++ )
if ( perr->m_id == id )
return perr->m_err;