From: Tom Krizek Date: Wed, 9 Aug 2023 11:42:23 +0000 (+0200) Subject: Resolve scan-build issue in dummylib.c X-Git-Tag: v9.19.17~40^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=145bec51a02c4b49a6b1722095d965e2bf3a0845;p=thirdparty%2Fbind9.git Resolve scan-build issue in dummylib.c Value stored to 'rdatap' is never read. Remove the line which has no effect. --- diff --git a/bin/tests/system/rpz/testlib/dummylib.c b/bin/tests/system/rpz/testlib/dummylib.c index 9d63e45687a..d9ebdd306d5 100644 --- a/bin/tests/system/rpz/testlib/dummylib.c +++ b/bin/tests/system/rpz/testlib/dummylib.c @@ -267,7 +267,6 @@ pack_soa_record(unsigned char *rdatap, size_t rbufsz, size_t *rdlenp, ISC_U32TO8_BE(rdatap, psoa->expire); rdatap += 4; ISC_U32TO8_BE(rdatap, psoa->minimum); - rdatap += 4; used += (4 * 5); SET_IF_NOT_NULL(rdlenp, used);