From 5743ae48eb061a4a9b3f88b09f5446144f4502c2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Cl=C3=A9ment=20de=20l=27Hamaide?= Date: Thu, 8 May 2014 19:28:20 +0200 Subject: [PATCH] Better variable initialization, thanks to Torsten for reporting it --- utils/fgcom/fgcom.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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, ","); -- 2.39.2