From aa425c42389921dc4a71561c701014bf443f8094 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Tue, 11 Aug 2009 19:25:25 +0200 Subject: Added regex sets. Minor fixes and comments. Added pcre-config to Makefile. --- main.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'main.c') diff --git a/main.c b/main.c index a6e9019..93d5738 100644 --- a/main.c +++ b/main.c @@ -1,9 +1,15 @@ #include #include "config.h" +#include "regexset.h" int main(int argc, char **argv) { + /* Regex sets must be initialized before config. */ + rs_init(); if(!cfg_init()) { + /* Free any registered regex sets when config fails. + Config will fail if a regex set fails to compile all parts. */ + rs_free(); return 1; } return 0; -- cgit v1.2.3