Skip to content

Commit

Permalink
fixed: CID 719169 Uninitialized scalar field
Browse files Browse the repository at this point in the history
The field will contain an arbitrary value left over from earlier computations.
In CSMB::​CSMB(): A scalar field is not initialized by the constructor (CWE-457)
  • Loading branch information
elupus authored and fritsch committed Dec 29, 2014
1 parent 7c6cef8 commit 5be9319
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions xbmc/filesystem/SMBFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ CSMB::CSMB()
{
m_IdleTimeout = 0;
m_context = NULL;
#ifdef TARGET_POSIX
m_OpenConnections = 0;
m_IdleTimeout = 0;
#endif
}

CSMB::~CSMB()
Expand Down

0 comments on commit 5be9319

Please sign in to comment.