X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=src%2Fvalidate.c;h=2dfc3d46103b7d4a96be8069f19cdcf467670f3e;hb=79659188464b3fba4bb497838f679bbb98f43d1a;hp=e7bceafd845eb957ff6ea38e7b5ae5cf17b5bd00;hpb=f15858adf036b3010895526eaf6d1b9711d48bc9;p=m6w6%2Fext-psi diff --git a/src/validate.c b/src/validate.c index e7bceaf..2dfc3d4 100644 --- a/src/validate.c +++ b/src/validate.c @@ -203,17 +203,20 @@ bool psi_validate(struct psi_validate_scope *scope, } /* nothing changed; bail out */ - if (count_all && (dst->flags & PSI_SILENT) && !(flags & PSI_SILENT)) { - /* one last error-spitting round, if not explicitly suppressed */ - dst->flags ^= PSI_SILENT; - check_count = ~0; + if (count_all) { + src->errors += count_all; - PSI_DEBUG_PRINT(dst, "PSI: validation bail out with %zu" - " type checks remaining, errors follow\n", count_all); - continue; + if ((dst->flags & PSI_SILENT) && !(flags & PSI_SILENT)) { + /* one last error-spitting round, if not explicitly suppressed */ + dst->flags ^= PSI_SILENT; + check_count = ~0; + + PSI_DEBUG_PRINT(dst, "PSI: validation bail out with %zu" + " type checks remaining, errors follow\n", count_all); + continue; + } } - src->errors += count_all; break; }