X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=tools%2Fccanlint%2Ftests%2Fexamples_compile.c;h=e66379f5e7fee45e9036a5cda09f664dac568b09;hp=82b479620c614ba6c1e7d995003b60bdd96a0864;hb=374d3d2eaa1b29dd3f3a940ca472bb209e95155d;hpb=3cd1d24a9e2e578890951d723e0461ed13444650 diff --git a/tools/ccanlint/tests/examples_compile.c b/tools/ccanlint/tests/examples_compile.c index 82b47962..e66379f5 100644 --- a/tools/ccanlint/tests/examples_compile.c +++ b/tools/ccanlint/tests/examples_compile.c @@ -506,6 +506,11 @@ static void *build_examples(struct manifest *m, bool keep, /* This didn't work, so not a candidate for combining. */ prev = NULL; } + + if (strcmp(score->errors, "") == 0) { + talloc_free(score); + return NULL; + } return score; }