From b10e5c9adfa7716a051e20d35368040860272652 Mon Sep 17 00:00:00 2001 From: eap Date: Thu, 8 Aug 2013 11:05:20 +0000 Subject: [PATCH] Fix for ==3768== Conditional jump or move depends on uninitialised value(s) ==3768== at 0x4C22ED8: strlen (mc_replace_strmem.c:275) ==3768== by 0x1081E60B: std::string::operator=(char const*) (in /usr/lib64/libstdc++.so.6.0.12) ==3768== by 0x40757F29: UNV164::Read(std::basic_ifstream >&, UNV164::TRecord&) (UNV164_Structure.cxx:49) --- src/DriverUNV/UNV164_Structure.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DriverUNV/UNV164_Structure.cxx b/src/DriverUNV/UNV164_Structure.cxx index 64f5187d1..a4cd6c624 100644 --- a/src/DriverUNV/UNV164_Structure.cxx +++ b/src/DriverUNV/UNV164_Structure.cxx @@ -42,7 +42,7 @@ void UNV164::Read(std::ifstream& in_stream, TRecord& theUnitsRecord ) return; string num_buf; - char line[theMaxLineLen]; + char line[theMaxLineLen] = ""; in_stream >> theUnitsRecord.units_code; in_stream.readsome( line, 20 ); -- 2.30.2