diff --git a/filter.c b/filter.c index 7f78948..f84af23 100644 --- a/filter.c +++ b/filter.c @@ -38,7 +38,7 @@ static inline pcre* compile(const char *pattern, struct __error_info *info) { regex = pcre_compile(pattern, 0, &err, &eoffset, NULL); if (!regex) { if (info) { - info->msg = error; + info->msg = err; info->offset = eoffset; } return NULL; @@ -97,4 +97,4 @@ int filter_match_list(char **patterns, unsigned n, const char *subject) { return 1; } return 0; -} \ No newline at end of file +}