diff options
author | Patrick Ohly <patrick.ohly@intel.com> | 2010-04-08 16:30:26 +0200 |
---|---|---|
committer | Patrick Ohly <patrick.ohly@intel.com> | 2010-04-08 16:30:26 +0200 |
commit | 3b2633efd048dec92f5f12102f80cc4c470c7363 (patch) | |
tree | c3016b05bf9365597a2d32e21c96225481827ed5 | |
parent | 1077b831ecf4dcc7e780bc4d4ec0f7b4326ceb94 (diff) |
TConfigElement::endElement(): fixed invalid memory readlibsynthesis_3.4.0.6+syncevolution-1-0-beta-3meego-1.0
valgrind reports that fCfgVarExp is uninitialized when being read
by endElement(). Not sure how this can happen, because it should be
set in startElement(). Set it in constructor, just to be sure that
we don't have undeterministic behavior.
-rwxr-xr-x | src/sysync/configelement.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sysync/configelement.cpp b/src/sysync/configelement.cpp index 7d3ed51..7b73d41 100755 --- a/src/sysync/configelement.cpp +++ b/src/sysync/configelement.cpp @@ -95,6 +95,7 @@ TConfigElement::TConfigElement(const char *aElementName, TConfigElement *aParent // init parsing ResetParsing(); #endif + fCfgVarExp=0; } // TConfigElement::TConfigElement |