From: Laurent Date: Wed, 6 Jan 2016 09:52:31 +0000 (+0100) Subject: remove the addressof in the sizeof X-Git-Tag: collectd-5.5.1~7^2~9 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e4908c8c45e8c53bd510ed54ec0c89e0e52c5ead;p=collectd.git remove the addressof in the sizeof quick fix for issue 1501? the new warning for pointer access introduced in gcc 4.8 helped to find this one. --- diff --git a/src/netapp.c b/src/netapp.c index f446d597..f761e290 100644 --- a/src/netapp.c +++ b/src/netapp.c @@ -1524,7 +1524,7 @@ static int cna_change_volume_status (const char *hostname, /* {{{ */ { notification_t n; - memset (&n, 0, sizeof (&n)); + memset (&n, 0, sizeof (n)); n.time = cdtime (); sstrncpy (n.host, hostname, sizeof (n.host)); sstrncpy (n.plugin, "netapp", sizeof (n.plugin));