Index: trunk/debs/squid/redirector.c |
— | — | @@ -75,6 +75,11 @@ |
76 | 76 | &erroffset, /* for error offset */ |
77 | 77 | NULL); /* use default character tables */ |
78 | 78 | |
| 79 | + if (!re) { |
| 80 | + fprintf(stderr, "pcre_compile failed at offset %d: %s\n", erroffset, error); |
| 81 | + exit(1); |
| 82 | + } |
| 83 | + |
79 | 84 | pe = pcre_study(re, 0, &error); |
80 | 85 | |
81 | 86 | while(fgets(buff, MAX_BUFF, stdin) != NULL) { |