==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<char, std::char_traits<char> >&, UNV164::TRecord&) (UNV164_Structure.cxx:49)
This commit is contained in:
eap 2013-08-08 11:05:20 +00:00
parent 74ff246e04
commit b10e5c9adf

View File

@ -42,7 +42,7 @@ void UNV164::Read(std::ifstream& in_stream, TRecord& theUnitsRecord )
return; return;
string num_buf; string num_buf;
char line[theMaxLineLen]; char line[theMaxLineLen] = "";
in_stream >> theUnitsRecord.units_code; in_stream >> theUnitsRecord.units_code;
in_stream.readsome( line, 20 ); in_stream.readsome( line, 20 );