projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a22386
)
remove the addressof in the sizeof
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.
src/netapp.c
patch
|
blob
|
history
diff --git
a/src/netapp.c
b/src/netapp.c
index
f446d59
..
f761e29
100644
(file)
--- 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));