]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - write.c
string: Introduce arr_zalloc().
[paraslash.git] / write.c
diff --git a/write.c b/write.c
index 9e0f22bdafae79d502ae2628fa1a07d6a1ccaf34..356f35d46c04114881cb2b5516920e2d213b4e0d 100644 (file)
--- a/write.c
+++ b/write.c
@@ -89,7 +89,7 @@ static int setup_and_schedule(struct lls_parse_result *lpr)
        }, &s);
 
        n = writer_given? writer_given : 1;
-       wns = zalloc(n * sizeof(*wns));
+       wns = arr_zalloc(n, sizeof(*wns));
        for (i = 0; i < n; i++) {
                const char *arg = i < writer_given?
                        lls_string_val(i, OPT_RESULT(WRITER, lpr)) : NULL;