ccanlint: handle when _info doesn't compile.
[ccan] / tools / depends.c
index 399b0aadf5affee6b8b814d2facc118a40150bf0..a506c3d1c7e526a41fdf7336b37f84f8dec59206 100644 (file)
@@ -198,6 +198,8 @@ get_all_deps(const void *ctx, const char *dir, const char *style,
        unsigned int i;
 
        deps = get_one(ctx, dir, style, get_info);
+       if (!deps)
+               return NULL;
        for (i = 0; i < tal_count(deps)-1; i++) {
                char **newdeps;
                unsigned int j;