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 30976c05a4
commit b468390155

View file

@ -956,6 +956,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");