summaryrefslogtreecommitdiffstats
path: root/src/plugins/regexp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/regexp.c')
-rw-r--r--src/plugins/regexp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/regexp.c b/src/plugins/regexp.c
index 9ef4e1ce3..35307359d 100644
--- a/src/plugins/regexp.c
+++ b/src/plugins/regexp.c
@@ -80,6 +80,9 @@ read_regexp_expression (memory_pool_t *pool, struct regexp_module_item *chain, c
struct expression *e, *cur;
e = parse_expression (regexp_module_ctx->regexp_pool, line);
+ if (e == NULL) {
+ msg_err ("read_regexp_extension: %s is invalid regexp extension", line);
+ }
chain->expr = e;
cur = e;
while (cur) {