diff options
Diffstat (limited to 'tools/python/xen/lowlevel/netlink/libnetlink.c')
-rw-r--r-- | tools/python/xen/lowlevel/netlink/libnetlink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/python/xen/lowlevel/netlink/libnetlink.c b/tools/python/xen/lowlevel/netlink/libnetlink.c index 75e4a51600..c5fc0bf46b 100644 --- a/tools/python/xen/lowlevel/netlink/libnetlink.c +++ b/tools/python/xen/lowlevel/netlink/libnetlink.c @@ -37,7 +37,7 @@ int rtnl_open_byproto(struct rtnl_handle *rth, unsigned subscriptions, int sndbuf = 32768; int rcvbuf = 32768; - memset(rth, 0, sizeof(rth)); + memset(rth, 0, sizeof(*rth)); rth->fd = socket(AF_NETLINK, SOCK_RAW, protocol); if (rth->fd < 0) { |