]> git.ozlabs.org Git - ccan/blobdiff - tools/depends.c
tal: make tal_len/tal_count(NULL) return 0.
[ccan] / tools / depends.c
index 95bda1b50a7b33088f41345a7369fa5e982ffa21..e6a79d71134404e5046e714367224c9e5ed543d1 100644 (file)
@@ -306,7 +306,7 @@ static char *get_one_ported(const void *ctx, const char *dir,
        char **ported = get_one_prop(ctx, dir, "ported", get_info);
 
        /* No news is good news. */
-       if (!ported || tal_count(ported) == 0)
+       if (tal_count(ported) == 0)
                return NULL;
 
        if (tal_count(ported) != 1)