From: eap Date: Thu, 8 Aug 2013 11:05:20 +0000 (+0000) Subject: Fix for X-Git-Tag: V7_3_0a1~215 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b10e5c9adfa7716a051e20d35368040860272652;p=modules%2Fsmesh.git 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) --- 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 );