Browse Source

Fix getting sub-depends.

Rusty Russell 16 years ago
parent
commit
90f958f9fe
1 changed files with 2 additions and 1 deletions
  1. 2 1
      tools/depends.c

+ 2 - 1
tools/depends.c

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