mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-27 09:50:34 +05:00
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<char, std::char_traits<char> >&, UNV164::TRecord&) (UNV164_Structure.cxx:49)
This commit is contained in:
parent
74ff246e04
commit
b10e5c9adf
@ -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 );
|
||||||
|
Loading…
Reference in New Issue
Block a user