openbsd-ports/www/polipo/patches/patch-forbidden_c

21 lines
552 B
Plaintext

$OpenBSD: patch-forbidden_c,v 1.1 2009/03/24 16:49:08 naddy Exp $
--- forbidden.c.orig Tue Mar 24 09:43:44 2009
+++ forbidden.c Tue Mar 24 09:44:02 2009
@@ -190,6 +190,7 @@ parseDomainFile(AtomPtr file,
DomainPtr **domains_return, regex_t **regex_return)
{
struct stat ss;
+ regex_t *regex;
int rc;
if(*domains_return) {
@@ -263,8 +264,6 @@ parseDomainFile(AtomPtr file,
free(domains);
domains = NULL;
}
-
- regex_t *regex;
if(rlen > 0) {
regex = malloc(sizeof(regex_t));