1 --- file-4.18.org/src/funcs.c 2006-10-31 20:37:17.000000000 +0100
2 +++ file/src/funcs.c 2006-11-25 00:52:17.259907000 +0100
5 file_reset(struct magic_set *ms)
8 if (ms->mlist == NULL) {
9 file_error(ms, 0, "no magic files loaded");
12 + for (ml = ms->mlist->next; ml != ms->mlist; ml = ml->next) {
14 + for (magindex = 0; magindex < ml->nmagic; magindex++)
15 + ml->magic[magindex].offset = 0;
17 ms->o.ptr = ms->o.buf;