X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=tools%2Fccanlint%2Ftests%2Flicense_exists.c;fp=tools%2Fccanlint%2Ftests%2Flicense_exists.c;h=72461bec6d40ab4b3534385dc1c1c3bc932c3c9f;hp=965a159ff8fff53f15bea96d4675c052eedbd9f0;hb=7bb7cd58c2d9df126dd6072e5f3bec1eb4dc916b;hpb=d50528d6c5f834bad874385b3a2c118bb39fb9ac diff --git a/tools/ccanlint/tests/license_exists.c b/tools/ccanlint/tests/license_exists.c index 965a159f..72461bec 100644 --- a/tools/ccanlint/tests/license_exists.c +++ b/tools/ccanlint/tests/license_exists.c @@ -90,7 +90,7 @@ static void check_has_license(struct manifest *m, d = find_license(m); if (!d) { - score->error = "No License: tag in _info"; + score->error = talloc_strdup(score, "No License: tag in _info"); return; } expected = expected_link(m, d); @@ -111,7 +111,8 @@ static void check_has_license(struct manifest *m, return; } if (errno == ENOENT) { - score->error = "LICENSE does not exist"; + score->error = talloc_strdup(score, + "LICENSE does not exist"); if (expected) has_license.handle = handle_license_link; return;