diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lua/lua_regexp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lua/lua_regexp.c b/src/lua/lua_regexp.c index 1b8702d1f..a86424c66 100644 --- a/src/lua/lua_regexp.c +++ b/src/lua/lua_regexp.c @@ -152,12 +152,13 @@ lua_regexp_create (lua_State *L) break; default: msg_info ("invalid regexp flag: %c", *flags_str); + goto fin; break; } flags_str++; } } - +fin: re = g_regex_new (pattern, regexp_flags, 0, &err); if (re == NULL) { g_free (pattern); |