mirror of
https://github.com/isc-projects/bind9.git
synced 2026-02-25 02:42:33 -05:00
initialize variables
This commit is contained in:
parent
2726950412
commit
afe7967b83
1 changed files with 2 additions and 0 deletions
|
|
@ -258,6 +258,7 @@ main(int argc, char *argv[]) {
|
|||
dns_result_t result;
|
||||
isc_mem_t *mctx;
|
||||
|
||||
mctx = NULL;
|
||||
RUNTIME_CHECK(isc_mem_create(0, 0, &mctx) == ISC_R_SUCCESS);
|
||||
|
||||
if (argc > 1) {
|
||||
|
|
@ -308,6 +309,7 @@ main(int argc, char *argv[]) {
|
|||
isc_buffer_init(&source, b, sizeof b, ISC_BUFFERTYPE_BINARY);
|
||||
isc_buffer_add(&source, bp - b);
|
||||
|
||||
message = NULL;
|
||||
result = dns_message_create(mctx, &message, DNS_MESSAGE_INTENT_PARSE);
|
||||
CHECKRESULT(result, "dns_message_create failed");
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue