Index: apprentice.c =================================================================== RCS file: /home/ncvs/src/contrib/file/apprentice.c,v retrieving revision 1.1.1.10 diff -u -r1.1.1.10 apprentice.c --- apprentice.c 19 Jun 2006 07:52:12 -0000 1.1.1.10 +++ apprentice.c 21 Jun 2006 00:43:37 -0000 @@ -381,7 +381,7 @@ } maxmagic = MAXMAGIS; - if ((marray = malloc(maxmagic * sizeof(*marray))) == NULL) { + if ((marray = calloc(maxmagic, sizeof(*marray))) == NULL) { (void)fclose(f); file_oomem(ms); return -1;