From: Clément de l'Hamaide Date: Thu, 8 May 2014 17:28:20 +0000 (+0200) Subject: Better variable initialization, thanks to Torsten for reporting it X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5743ae48eb061a4a9b3f88b09f5446144f4502c2;p=flightgear.git Better variable initialization, thanks to Torsten for reporting it --- diff --git a/utils/fgcom/fgcom.cxx b/utils/fgcom/fgcom.cxx index af94b0ace..67f7be34a 100644 --- a/utils/fgcom/fgcom.cxx +++ b/utils/fgcom/fgcom.cxx @@ -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, ",");