NULL terminate the parameters array

Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Miika Turkia 2016-05-05 11:12:50 +03:00 committed by Dirk Hohndel
parent 93e529f371
commit 4d8d7c2a0f

1
file.c
View file

@ -903,6 +903,7 @@ int parse_csv_file(const char *filename, char **params, int pnr, const char *csv
tmpbuf[7] = 0;
params[pnr++] = "time";
params[pnr++] = strdup(tmpbuf);
params[pnr++] = NULL;
}
ptr = strstr(mem.buffer, "ZDP");