--- file_4.17.orig/src/apprentice.c	2006-03-02 22:08:57.000000000 +0000
+++ file-4.17/src/apprentice.c	2006-10-15 18:07:38.000000000 +0100
@@ -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;
