]> git.ozlabs.org Git - ccan/blobdiff - ccan/tal/test/run.c
base64: fix for unsigned chars (e.g. ARM).
[ccan] / ccan / tal / test / run.c
index ab4341f2c93f443bfdc6b61f84ce57c4fa45be2b..4931099e79049e3fa74ce316444f08a325633b3f 100644 (file)
@@ -25,7 +25,7 @@ int main(void)
 
        /* Iteration test. */
        i = 0;
-       for (p = tal_first(parent); p; p = tal_next(parent, p)) {
+       for (p = tal_first(parent); p; p = tal_next(p)) {
                *p = '1';
                i++;
        }
@@ -56,5 +56,6 @@ int main(void)
        }
        tal_free(parent);
 
+       tal_cleanup();
        return exit_status();
 }