From e4908c8c45e8c53bd510ed54ec0c89e0e52c5ead Mon Sep 17 00:00:00 2001 From: Laurent Date: Wed, 6 Jan 2016 10:52:31 +0100 Subject: [PATCH] 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. --- src/netapp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- 2.30.2