From 145bec51a02c4b49a6b1722095d965e2bf3a0845 Mon Sep 17 00:00:00 2001 From: Tom Krizek Date: Wed, 9 Aug 2023 13:42:23 +0200 Subject: [PATCH] Resolve scan-build issue in dummylib.c Value stored to 'rdatap' is never read. Remove the line which has no effect. --- bin/tests/system/rpz/testlib/dummylib.c | 1 - 1 file changed, 1 deletion(-) diff --git a/bin/tests/system/rpz/testlib/dummylib.c b/bin/tests/system/rpz/testlib/dummylib.c index 9d63e45687..d9ebdd306d 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);