parser fixes

This commit is contained in:
SJ
2012-01-28 20:52:13 +01:00
parent a7df7986ae
commit b4d13833b8
6 changed files with 10 additions and 7 deletions

View File

@@ -147,6 +147,8 @@ int check_attachment_rule(struct _state *state, struct rule *rule){
int i;
size_t nmatch=0;
if(state->n_attachments == 0) return 1;
for(i=1; i<=state->n_attachments; i++){
if(
regexec(&(rule->attachment_type), state->attachments[i].type, nmatch, NULL, 0) == 0 &&