projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7bcddb1
)
threshold.c: remove assignment with no effect.
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sat, 23 Apr 2016 09:00:31 +0000
(11:00 +0200)
committer
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sat, 23 Apr 2016 09:00:31 +0000
(11:00 +0200)
[src/threshold.c:81] -> [src/threshold.c:87]: (performance) Variable 'th_ptr' is reassigned a value before the old one has been used.
src/threshold.c
patch
|
blob
|
history
diff --git
a/src/threshold.c
b/src/threshold.c
index
624ab7a
..
e849b1d
100644
(file)
--- a/
src/threshold.c
+++ b/
src/threshold.c
@@
-78,7
+78,6
@@
static int ut_threshold_add (const threshold_t *th)
return (-1);
}
memcpy (th_copy, th, sizeof (threshold_t));
- th_ptr = NULL;
DEBUG ("ut_threshold_add: Adding entry `%s'", name);