summaryrefslogtreecommitdiff
path: root/src/plugin-luaregex.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugin-luaregex.cc')
-rw-r--r--src/plugin-luaregex.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugin-luaregex.cc b/src/plugin-luaregex.cc
index 13be506..739d8f9 100644
--- a/src/plugin-luaregex.cc
+++ b/src/plugin-luaregex.cc
@@ -7,6 +7,9 @@
#endif
static void _init_plugin(Lua * L) {
+ static bool done = false;
+ if (done) return;
+ done = true;
LuaRegex::pushstatics(L);
}