]> git.ozlabs.org Git - ccan/blobdiff - ccan/tal/path/test/run-split.c
tal: make tal_next() only return immediate children.
[ccan] / ccan / tal / path / test / run-split.c
index 732333c39e9283616b52a23b3650253f2fc8f847..1083cc88cbb488989ed1d83f0b9b05bdc7377b31 100644 (file)
@@ -98,7 +98,7 @@ int main(void)
        ok1(!split);
        ok1(tal_first(ctx) == NULL);
 
-       ok1(tal_first(NULL) == ctx && tal_next(NULL, ctx) == NULL);
+       ok1(tal_first(NULL) == ctx && tal_next(ctx) == NULL && tal_first(ctx) == NULL);
        tal_free(ctx);
 
        return exit_status();