Code

tail_csv plugin: set pointer to NULL not 0
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Sat, 16 Apr 2016 11:49:01 +0000 (13:49 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Sat, 16 Apr 2016 11:59:31 +0000 (13:59 +0200)
Found with coccinelle

src/tail_csv.c

index 2d794fc7880fccf310ce4e44b6179937b7657599..a768ef81da850b721a4297709deb4e30500c6358 100644 (file)
@@ -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);