mirror of
https://github.com/radareorg/radare2.git
synced 2025-01-23 14:28:07 +00:00
Further meson warning build fixes. (#12290)
While here attempt fixing #12278 old version of file/libmagic.
This commit is contained in:
parent
c1fa170503
commit
2308897b3a
@ -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];
|
||||
|
Loading…
x
Reference in New Issue
Block a user