chiark / gitweb /
@@@ fltfmt mess
[mLib] / struct / t / sym-test.c
index dfc2391220e1562bfb79fbf2311cc58d96e99159..1862a8742028028ccd114979f124ded7dfe8a646 100644 (file)
@@ -65,7 +65,7 @@ int main(void)
       if (!n)
        puts("*EMPTY*");
       else {
-       v = malloc(n * sizeof(*v));
+       v = calloc(n, sizeof(*v));
        if (!v) {
          puts("*NOMEM*");
          continue;