Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 126012
Collapse All | Expand All

(-)file_not_specified_in_diff (-4 / +4 lines)
Line  Link Here
0
-- file-4.17/src/apprentice.c
0
++ file-4.17/src/apprentice.c
Lines 380-387 apprentice_file(struct magic_set *ms, st Link Here
380
		return -1;
380
		return -1;
381
	}
381
	}
382
382
383
        maxmagic = MAXMAGIS;
383
	maxmagic = MAXMAGIS;
384
	if ((marray = malloc(maxmagic * sizeof(*marray))) == NULL) {
384
	if ((marray = calloc(maxmagic, sizeof(*marray))) == NULL) {
385
		(void)fclose(f);
385
		(void)fclose(f);
386
		file_oomem(ms);
386
		file_oomem(ms);
387
		return -1;
387
		return -1;
Lines 509-515 parse(struct magic_set *ms, struct magic Link Here
509
	char *t;
509
	char *t;
510
	private const char *fops = FILE_OPS;
510
	private const char *fops = FILE_OPS;
511
	uint32_t val;
511
	uint32_t val;
512
	uint32_t cont_level, cont_count;
512
	uint32_t cont_level;
513
513
514
	cont_level = 0;
514
	cont_level = 0;
515
515

Return to bug 126012