]> git.ozlabs.org Git - ccan/commitdiff
Fix getting sub-depends.
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 6 Jan 2010 02:07:55 +0000 (12:37 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 6 Jan 2010 02:07:55 +0000 (12:37 +1030)
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++) {