Browse Source

Fix pcre

personal/stbuehler/wip
Stefan Bühler 14 years ago
parent
commit
ac1f66ee1d
  1. 6
      src/condition.c
  2. 2
      src/condition.h
  3. 4
      src/settings.h

6
src/condition.c

@ -180,9 +180,9 @@ static void condition_free(condition *c) {
g_string_free(c->rvalue.string, TRUE);
break;
#ifdef HAVE_PCRE_H
case COND_VALUE_REGEXP
if (c->rvalue.regex) pcre_free(c->rvalue.regex);
if (c->rvalue.regex_study) pcre_free(c->rvalue.regex_study);
case COND_VALUE_REGEXP:
if (c->rvalue.pcre.regex) pcre_free(c->rvalue.pcre.regex);
if (c->rvalue.pcre.regex_study) pcre_free(c->rvalue.pcre.regex_study);
#endif
break;
case COND_VALUE_SOCKET_IPV4:

2
src/condition.h

@ -88,7 +88,7 @@ struct condition_rvalue {
struct {
pcre *regex;
pcre_extra *regex_study;
};
} pcre;
#endif
gint64 i;
struct {

4
src/settings.h

@ -40,6 +40,10 @@
# include <unistd.h>
#endif
#ifdef HAVE_PCRE_H
#include <pcre.h>
#endif
#include <errno.h>
#include <string.h>

Loading…
Cancel
Save