chg: use calloc

This commit is contained in:
iceman1001 committed 2019-01-30 21:40:50 +01:00
1 parent 99b6087b01
commit ad72a424ef
15 files changed
+36 -27

No files matched your search

+3 -1
View File
@@ -377,7 +377,9 @@ ipqx:
/* allocate argument array */
args = argc - optind;
if(!(apolys = malloc(args * sizeof(poly_t)))){
apolys = calloc(args * sizeof(poly_t), sizeof(char));
if ( !apolys ){
uerror("cannot allocate memory for argument list");
return 0;
}