Browse Source

qrtplib: Initialize RTP hash table element

Initialize curhashelem in the RTPKeyHashTable constructor.

Found by cppcheck.

Signed-off-by: Robin Getz <rgetz503@gmail.com>
chirpmodem-v8.0.0
Robin Getz 2 months ago
parent
commit
917a04d7d3
No known key found for this signature in database
GPG Key ID: 51C7231FFED0E060
  1. 3
      qrtplib/rtpkeyhashtable.h

3
qrtplib/rtpkeyhashtable.h

@ -124,7 +124,8 @@ private: @@ -124,7 +124,8 @@ private:
};
template<class Key, class Element, class GetIndex, int hashsize>
inline RTPKeyHashTable<Key, Element, GetIndex, hashsize>::RTPKeyHashTable()
inline RTPKeyHashTable<Key, Element, GetIndex, hashsize>::RTPKeyHashTable() :
curhashelem(0)
{
for (int i = 0; i < hashsize; i++)
table[i] = 0;

Loading…
Cancel
Save