ccanlint: fix more potential segvs when reporting ccanlint errors.
[ccan] / tools / ccanlint / tests / tests_compile_coverage.c
index f41edc0bc6f36588a334a07c923707bbc10421d5..508057fa0d3b2d9ad61361211c01e92a94c48dc8 100644 (file)
@@ -40,7 +40,7 @@ static bool build_module_objs_with_coverage(struct manifest *m, bool keep,
                i->cov_compiled = maybe_temp_file(m, "", keep, fullfile);
                if (!compile_object(m, fullfile, ccan_dir, "",
                                    i->cov_compiled, &err)) {
-                       score_file_error(score, i, 0, err);
+                       score_file_error(score, i, 0, "%s", err);
                        talloc_free(i->cov_compiled);
                        i->cov_compiled = NULL;
                        return false;