]> git.ipfire.org Git - thirdparty/bind9.git/commit
libdns: add missing checks for return values in dnstap unit test
authorOndřej Surý <ondrej@sury.org>
Thu, 31 Oct 2019 11:50:58 +0000 (06:50 -0500)
committerOndřej Surý <ondrej@sury.org>
Tue, 5 Nov 2019 08:49:24 +0000 (09:49 +0100)
commit027f2c151846dc2dff17a0158d8d8b9986c2fbea
treec366ce7d6b95da54bd4d65d23d9dfb7968a03145
parent2d52a05f4f46081378639647b161ba17f7d0fdf3
libdns: add missing checks for return values in dnstap unit test

Related scan-build report:

dnstap_test.c:169:2: warning: Value stored to 'result' is never read
        result = dns_test_makeview("test", &view);
        ^        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dnstap_test.c:193:2: warning: Value stored to 'result' is never read
        result = dns_compress_init(&cctx, -1, dt_mctx);
        ^        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 warnings generated.

(cherry picked from commit e9acad638eb21e0ef0bd8558a196ca24c3099292)
lib/dns/tests/dnstap_test.c