tools: don't abort on malformed documentation lines.
[ccan] / tools / doc_extract.c
index f792b57b461212aff185fa4aa84e31f6b2ef82a6..aa0c5a045c40d74ebd56feeac3b6e16a4df1261e 100644 (file)
@@ -52,7 +52,7 @@ int main(int argc, char *argv[])
                        err(1, "Reading file %s", argv[i]);
                lines = strsplit(file, file, "\n");
 
-               list = extract_doc_sections(lines);
+               list = extract_doc_sections(lines, argv[i]);
                if (list_empty(list))
                        errx(1, "No documentation in file %s", argv[i]);
                talloc_free(file);