1
0
Fork 0

Better variable initialization, thanks to Torsten for reporting it

This commit is contained in:
Clément de l'Hamaide 2014-05-08 19:28:20 +02:00
parent 2f8f424f21
commit 5743ae48eb

View file

@ -1118,8 +1118,8 @@ parse_fgdata (struct fgdata *data, char *buf)
{
char *data_pair = NULL;
char *fields[2];
fields[0] = '\0';
fields[1] = '\0';
fields[0] = NULL;
fields[1] = NULL;
SG_LOG( SG_GENERAL, SG_DEBUG, "Parsing data: [" << buf << "]" );
/* Parse data from FG */
data_pair = strtok (buf, ",");