(svn r17283) -Cleanup [Squirrel]: remove a few unneeded changes to squirrel code

This commit is contained in:
yexo
2009-08-25 12:47:50 +00:00
parent fe4f55d0a4
commit 650f36c08c
3 changed files with 3 additions and 2 deletions

View File

@@ -558,12 +558,12 @@ SQRex *sqstd_rex_compile(const SQChar *pattern,const SQChar **error)
#endif
exp->_matches = (SQRexMatch *) sq_malloc(exp->_nsubexpr * sizeof(SQRexMatch));
memset(exp->_matches,0,exp->_nsubexpr * sizeof(SQRexMatch));
return exp;
}
catch (...) {
sqstd_rex_free(exp);
return NULL;
}
return exp;
}
void sqstd_rex_free(SQRex *exp)