remove the addressof in the sizeof
authorLaurent <laurent+git@u-picardie.fr>
Wed, 6 Jan 2016 09:52:31 +0000 (10:52 +0100)
committerMarc Fournier <marc.fournier@camptocamp.com>
Tue, 12 Jan 2016 05:39:41 +0000 (06:39 +0100)
quick fix for issue 1501?
the new warning for pointer access introduced in gcc 4.8 helped to find
this one.

src/netapp.c

index f446d59..f761e29 100644 (file)
@@ -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));