Fix getting sub-depends.
[ccan] / tools / depends.c
index 6c61cca0ec76bc8dcc52b04fa61349bd7727ed48..4c31e50a12ef5a825537a802578373af3d00ede9 100644 (file)
@@ -181,12 +181,13 @@ get_all_deps(const void *ctx, const char *dir, const char *name,
        for (i = 0; i < num; i++) {
                char **newdeps;
                unsigned int j, newnum;
+               char *subinfo = NULL;
 
                if (!strstarts(deps[i], "ccan/"))
                        continue;
 
                newdeps = get_one(ctx, dir, deps[i] + strlen("ccan/"),
-                                 &newnum, infofile);
+                                 &newnum, &subinfo);
 
                /* Should be short, so brute-force out dups. */
                for (j = 0; j < newnum; j++) {