Fix maybe-uninitialized compiler warning

This commit is contained in:
Jon Siwek 2019-05-14 19:01:05 -07:00
parent 8abf0fad57
commit b3c4b986ef
3 changed files with 6 additions and 2 deletions

View file

@ -1,4 +1,8 @@
2.6-292 | 2019-05-14 19:01:05 -0700
* Fix maybe-uninitialized compiler warning (Jon Siwek, Corelight)
2.6-290 | 2019-05-14 18:35:25 -0700 2.6-290 | 2019-05-14 18:35:25 -0700
* Update btest.cfg path to use zeek-aux (Jon Siwek, Corelight) * Update btest.cfg path to use zeek-aux (Jon Siwek, Corelight)

View file

@ -1 +1 @@
2.6-290 2.6-292

View file

@ -677,7 +677,7 @@ ListVal* CompositeHash::RecoverVals(const HashKey* k) const
loop_over_list(*tl, i) loop_over_list(*tl, i)
{ {
Val* v; Val* v = nullptr;
kp = RecoverOneVal(k, kp, k_end, (*tl)[i], v, false); kp = RecoverOneVal(k, kp, k_end, (*tl)[i], v, false);
ASSERT(v); ASSERT(v);
l->Append(v); l->Append(v);