projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7178c51
)
tail_csv plugin: set pointer to NULL not 0
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sat, 16 Apr 2016 11:49:01 +0000
(13:49 +0200)
committer
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sat, 16 Apr 2016 11:59:31 +0000
(13:59 +0200)
Found with coccinelle
src/tail_csv.c
patch
|
blob
|
history
diff --git
a/src/tail_csv.c
b/src/tail_csv.c
index
2d794fc
..
a768ef8
100644
(file)
--- a/
src/tail_csv.c
+++ b/
src/tail_csv.c
@@
-85,7
+85,7
@@
static int tcsv_submit (instance_definition_t *id,
static cdtime_t parse_time (char const *tbuf)
{
double t;
- char *endptr =
0
;
+ char *endptr =
NULL
;
errno = 0;
t = strtod (tbuf, &endptr);