]> git.ozlabs.org Git - ccan/blobdiff - tools/ccanlint/compulsory_tests/info_exists.c
ccanlint: score_file_error() takes printf-format
[ccan] / tools / ccanlint / compulsory_tests / info_exists.c
index a9a6c1c993a77c532515fe5c92eef282cccafba9..ac84011978e86edbd0209270b8b07f68ae3d5b21 100644 (file)
@@ -21,10 +21,11 @@ static void check_has_info(struct manifest *m,
                score->pass = true;
                score->score = score->total;
        } else {
-               score->error = "You have no _info file.\n\n"
+               score->error = talloc_strdup(score,
+       "You have no _info file.\n\n"
        "The file _info contains the metadata for a ccan package: things\n"
        "like the dependencies, the documentation for the package as a whole\n"
-       "and license information.\n";
+       "and license information.\n");
        }
 }