Mercurial > ecos
diff packages/language/cxx/ustl/current/src/uexception.cpp @ 2910:9e1cb7863bef
* src/bktrace.cpp: prevent inclusion of host header <execinfo.h> (eCos builds
for Linux synthetic target).
* src/uexception.cpp:exception::read(): initialise local variable stmSize.
| author | jld |
|---|---|
| date | Mon, 24 Aug 2009 06:46:33 +0000 |
| parents | 88af52c64ce4 |
| children | 4885e0722884 |
line wrap: on
line diff
--- a/packages/language/cxx/ustl/current/src/uexception.cpp +++ b/packages/language/cxx/ustl/current/src/uexception.cpp @@ -35,7 +35,7 @@ void exception::info (string& msgbuf, co /// Reads the exception from stream \p is. void exception::read (istream& is) { - uint32_t stmSize; + uint32_t stmSize = 0; xfmt_t fmt = xfmt_Exception; is >> fmt >> stmSize >> m_Backtrace; assert (fmt == m_Format && "The saved exception is of a different type.");
