]> git.ozlabs.org Git - ccan/blobdiff - ccan/tal/path/test/run-canon.c
tal: make tal_next() only return immediate children.
[ccan] / ccan / tal / path / test / run-canon.c
index e01567bf5ab106be99d1cb7842af37ea4d98c7cb..c6e3a8b04b67696a272d87d70a503f44b1b909d9 100644 (file)
@@ -36,7 +36,7 @@ int main(void)
        ok1(strstarts(path, cwd));
        ok1(path[strlen(cwd)] == PATH_SEP);
        ok1(strlen(path) == strlen(cwd) + 1 + strlen("run-canon-foo"));
-       ok1(tal_first(ctx) == path && tal_next(ctx, path) == NULL);
+       ok1(tal_first(ctx) == path && tal_next(path) == NULL);
        path2 = path_canon(ctx, "run-canon-link");
        ok1(streq(path2, path));