BIND 10 #971: bin/resolver/resolver.cc variables should be explicitly initialized to NULL.
BIND 10 Development
do-not-reply at isc.org
Wed May 25 17:21:56 UTC 2011
#971: bin/resolver/resolver.cc variables should be explicitly initialized to
NULL.
---------------------------------+-----------------------------------------
Reporter: jreed | Owner:
Type: defect | Status: new
Priority: major | Milestone: New Tasks
Component: resolver | Keywords:
Sensitive: 0 | Defect Severity: N/A
Sub-Project: DNS | Feature Depending on Ticket:
Estimated Difficulty: 0 | Add Hours to Ticket: 0
Total Hours: 0 | Internal?: 0
---------------------------------+-----------------------------------------
{{{
cppcheck --enable=all --suppressions src/cppcheck-suppress.lst --quiet
--error-exitcode=1 --template '{file}:{line}: check_fail: {message}
({severity},{id})' src
src/bin/resolver/resolver.cc:325: check_fail: Member variable
'Resolver::dnss_' is not initialised in the constructor.
(warning,uninitVar)
src/bin/resolver/resolver.cc:325: check_fail: Member variable
'Resolver::nsas_' is not initialised in the constructor.
(warning,uninitVar)
src/bin/resolver/resolver.cc:325: check_fail: Member variable
'Resolver::cache_' is not initialised in the constructor.
(warning,uninitVar)
*** Error code 1
Stop in
/usr/home/jreed/builder/work/BIND10-cppcheck/20110525143001-FreeBSD8-amd64-GCC/build.
}}}
From jabber:
(12:15:29) stephen: OK, they're quite trivial - the variables should be
explicitly initialized to NULL.
...
(12:19:05) stephen: Could you create a ticket for the CPP check so that we
don't forget it?
--
Ticket URL: <http://bind10.isc.org/ticket/971>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development
More information about the bind10-tickets
mailing list