summaryrefslogtreecommitdiff
path: root/src/3rdparty/squirrel/sqstdlib
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2009-08-25 12:47:50 +0000
committeryexo <yexo@openttd.org>2009-08-25 12:47:50 +0000
commitb9536e933f114bb233b99ee4226f51030db65a18 (patch)
tree2595cd913eb91092fe1980583d80d35ca7004832 /src/3rdparty/squirrel/sqstdlib
parentc46c0a7c86a2e3184c0b6c2e961c6cf3dee16cec (diff)
downloadopenttd-b9536e933f114bb233b99ee4226f51030db65a18.tar.xz
(svn r17283) -Cleanup [Squirrel]: remove a few unneeded changes to squirrel code
Diffstat (limited to 'src/3rdparty/squirrel/sqstdlib')
-rw-r--r--src/3rdparty/squirrel/sqstdlib/sqstdrex.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/3rdparty/squirrel/sqstdlib/sqstdrex.cpp b/src/3rdparty/squirrel/sqstdlib/sqstdrex.cpp
index f07899d1e..60d8c6bad 100644
--- a/src/3rdparty/squirrel/sqstdlib/sqstdrex.cpp
+++ b/src/3rdparty/squirrel/sqstdlib/sqstdrex.cpp
@@ -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)