Commit 02358a94 authored by Rusty Russell's avatar Rusty Russell

ccanlint: handle when _info doesn't compile.

Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
parent d61a0d6c
...@@ -57,6 +57,11 @@ static void check_depends_exist(struct manifest *m, ...@@ -57,6 +57,11 @@ static void check_depends_exist(struct manifest *m,
deps = get_deps(m, m->dir, "depends", true, deps = get_deps(m, m->dir, "depends", true,
get_or_compile_info); get_or_compile_info);
if (!deps) {
score->error = tal_fmt(m, "Could not extract dependencies");
return;
}
for (i = 0; deps[i]; i++) { for (i = 0; deps[i]; i++) {
if (!strstarts(deps[i], "ccan/")) if (!strstarts(deps[i], "ccan/"))
continue; continue;
......
...@@ -198,6 +198,8 @@ get_all_deps(const void *ctx, const char *dir, const char *style, ...@@ -198,6 +198,8 @@ get_all_deps(const void *ctx, const char *dir, const char *style,
unsigned int i; unsigned int i;
deps = get_one(ctx, dir, style, get_info); deps = get_one(ctx, dir, style, get_info);
if (!deps)
return NULL;
for (i = 0; i < tal_count(deps)-1; i++) { for (i = 0; i < tal_count(deps)-1; i++) {
char **newdeps; char **newdeps;
unsigned int j; unsigned int j;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment