Fixed a bug report from Frederic Bouvier:
as a follow-up of my previous message, I found that in panel.cxx, function const char *FGTextLayer::Chunk::getValue () const, there is the use of a member variable _buf that seems to be uninitialized.
This commit is contained in:
parent
64ed2f8e42
commit
ec6a0b2810
1 changed files with 1 additions and 0 deletions
|
@ -1096,6 +1096,7 @@ const char *
|
||||||
FGTextLayer::Chunk::getValue () const
|
FGTextLayer::Chunk::getValue () const
|
||||||
{
|
{
|
||||||
if (test()) {
|
if (test()) {
|
||||||
|
_buf[0] = '\0';
|
||||||
switch (_type) {
|
switch (_type) {
|
||||||
case TEXT:
|
case TEXT:
|
||||||
sprintf(_buf, _fmt.c_str(), _text.c_str());
|
sprintf(_buf, _fmt.c_str(), _text.c_str());
|
||||||
|
|
Loading…
Add table
Reference in a new issue