]> git.ipfire.org Git - thirdparty/pdns.git/commit - pdns/pdns_recursor.cc
rec: Initialize `qhash` to 0 to make coverity happy
authorRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 7 Mar 2017 08:33:06 +0000 (09:33 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 8 Mar 2017 09:01:15 +0000 (10:01 +0100)
commitf57486f1c2c1ca39a668c142c28a623a6696e556
tree1d53bbdcfde3d039c5a1c8ce13b3274129144495
parent5ab70ef3e50f16f1e4fba769d538faa9b609b080
rec: Initialize `qhash` to 0 to make coverity happy

Coverity reports that `qhash` might be used initialized if the packet
cache is disabled. It's indeed used to initialize `dc->d_qhash`, which
will not be used if the packet cache is disabled so there is no real
issue. Still, let's just initialize `qhash` since other tools like Valgrind
are very likely to complain about this too.
pdns/pdns_recursor.cc