summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5a22386)
raw | patch | inline | side by side (parent: 5a22386)
author | Laurent <laurent+git@u-picardie.fr> | |
Wed, 6 Jan 2016 09:52:31 +0000 (10:52 +0100) | ||
committer | Marc 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.
the new warning for pointer access introduced in gcc 4.8 helped to find
this one.
src/netapp.c | patch | blob | history |
diff --git a/src/netapp.c b/src/netapp.c
index f446d597de1f27610b0be1c7e2cfde8957509a79..f761e290dfb509432f24fa6a2b5f6e517c2e5963 100644 (file)
--- a/src/netapp.c
+++ b/src/netapp.c
{
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));