source4/rpc_server/dnsserver/dcerpc_dnsserver.c:715: error: uninitvar: Uninitialized variable: answer_integer <--[cppcheck]
This error is benign and somewhat false because the code pointed to does
not run (due to a different check) if answer_integer is not actually
initialsed. It is easy to squash it though by just initialising the var.
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
}
is_integer = 0;
+ answer_integer = 0;
if (strcasecmp(operation, "AddressAnswerLimit") == 0) {
answer_integer = serverinfo->cAddressAnswerLimit;
union DNSSRV_RPC_UNION *r)
{
uint8_t is_integer, is_addresses, is_string;
- uint32_t answer_integer;
+ uint32_t answer_integer = 0;
struct IP4_ARRAY *answer_iparray;
struct DNS_ADDR_ARRAY *answer_addrarray;
char *answer_string;