]> git.ozlabs.org Git - ccan/blobdiff - ccan/tal/path/test/run-dirname.c
tal: make tal_next() only return immediate children.
[ccan] / ccan / tal / path / test / run-dirname.c
index 46589aefd80c9ba92b4abe3f6c24c897e708cbdd..a0bc2cbe397e114eaf9212aa4a435ce495129a6d 100644 (file)
@@ -47,7 +47,7 @@ int main(void)
        path = path_dirname(ctx, take(tal_strdup(ctx, "..")));
        ok1(streq(path, "."));
        ok1(tal_parent(path) == ctx);
-       ok1(tal_first(ctx) == path && !tal_next(ctx, path));
+       ok1(tal_first(ctx) == path && !tal_next(path));
        tal_free(path);
        ok1(path_dirname(ctx, take(NULL)) == NULL);
        ok1(!tal_first(ctx));