]> xenbits.xensource.com Git - xen.git/commit
tools: Fix memset(&p,0,sizeof(p)) idiom in several places.
authorMichael Young <m.a.young@durham.ac.uk>
Wed, 13 Feb 2013 17:00:15 +0000 (17:00 +0000)
committerMichael Young <m.a.young@durham.ac.uk>
Wed, 13 Feb 2013 17:00:15 +0000 (17:00 +0000)
commitd119301b5816b39b5ba722a2f8b301b37e8e34bd
treeb61060cef8f2d520e2303df56cdc1f415c1ab88b
parentb61ed421d2c85b5b106c63f2c14f8aa162b282f0
tools: Fix memset(&p,0,sizeof(p)) idiom in several places.

gcc 4.8 identifies several places where code of the form memset(x, 0,
sizeof(x)); is used incorrectly, meaning that less memory is set to
zero than required.

Signed-off-by: Michael Young <m.a.young@durham.ac.uk>
Committed-by: Keir Fraser <keir@xen.org>
tools/blktap2/drivers/md5.c
tools/debugger/kdd/kdd-xen.c
tools/libxc/xc_dom_boot.c
tools/libxl/libxl_qmp.c
tools/python/xen/lowlevel/netlink/libnetlink.c
tools/xenstat/libxenstat/src/xenstat_linux.c