From e3bd4545a20e890765eeb354e0acf1dcdae4a15a Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Wed, 12 Oct 2011 14:53:48 +0200 Subject: [PATCH] filter.c: compile: Oops, assigning function to char pointer info->msg is being assigned to 'error'. but there is no such variable. altho there is such a function in error.h fix this by assigning info->msg to 'err' instead, that is the variable passed to pcre_compile(). --- filter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +}