summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lua/lua_regexp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lua/lua_regexp.c b/src/lua/lua_regexp.c
index 84455280f..a22eaf93a 100644
--- a/src/lua/lua_regexp.c
+++ b/src/lua/lua_regexp.c
@@ -129,6 +129,7 @@ lua_regexp_create (lua_State *L)
if (sep == '\0' || g_ascii_isalnum (sep)) {
/* Not a special case */
+ pattern = g_strdup (string);
}
else {
slash = strrchr (string, sep);