Further meson warning build fixes. (#12290)

While here attempt fixing #12278 old version of file/libmagic.
This commit is contained in:
David CARLIER 2018-11-23 08:21:11 +00:00 committed by Anton Kochkov
parent c1fa170503
commit 2308897b3a

View File

@ -951,8 +951,7 @@ static int parse(RMagic *ms, struct r_magic_entry **mentryp, ut32 *nmentryp, con
file_oomem (ms, sizeof (*mp) * maxmagic);
return -1;
}
ut8 *p = (ut8*)&mp + *nmentryp;
(void)memset(p, 0, sizeof (*mp) * ALLOC_INCR);
(void)memset(&mp[*nmentryp], 0, sizeof (*mp) * ALLOC_INCR);
*mentryp = mp;
}
me = &(*mentryp)[*nmentryp];