mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
28eb49c7ed
We were initialising a uint32_t[5] block with memset(..., 5) when we surely meant memset(..., 5 * sizeof(uint32_t)) or some equivalent. Thanks go to gcc-7 and -Wmemset-elt-size. The warning looks like this: ../source4/lib/registry/regf.c: In function ‘reg_create_regf_file’: ../source4/lib/registry/regf.c:2095:2: warning: ‘memset’ used with length equal to number of elements without multiplication by element size [-Wmemset-elt-size] memset(nk.unk3, 0, 5); ^~~~~~ Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Ralph Boehme <slow@samba.org> |
||
---|---|---|
.. | ||
cmdline | ||
com | ||
events | ||
http | ||
messaging | ||
policy | ||
registry | ||
samba3 | ||
socket | ||
stream | ||
tls | ||
wmi |