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 2d794fc..a768ef8 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);