Suppress cppcheck false positive nullPointerRedundantCheck
This commit is contained in:
committed by
Ondřej Surý
parent
b54eeb1231
commit
86184dfb68
@@ -3088,7 +3088,9 @@ resign_fromlist(dns_rdatalist_t *this, dns_loadctx_t *lctx) {
|
||||
else
|
||||
when = sig.timeexpire - lctx->resign;
|
||||
|
||||
/* cppcheck-suppress nullPointerRedundantCheck */
|
||||
rdata = ISC_LIST_NEXT(rdata, link);
|
||||
/* cppcheck-suppress nullPointerRedundantCheck */
|
||||
while (rdata != NULL) {
|
||||
(void)dns_rdata_tostruct(rdata, &sig, NULL);
|
||||
if (isc_serial_gt(sig.timesigned, lctx->now))
|
||||
|
||||
@@ -50,7 +50,9 @@ recv_length(isc_task_t *task, isc_event_t *ev_in) {
|
||||
INSIST(VALID_TCPMSG(tcpmsg));
|
||||
|
||||
dev = &tcpmsg->event;
|
||||
/* cppcheck-suppress nullPointerRedundantCheck */
|
||||
tcpmsg->address = ev->address;
|
||||
/* cppcheck-suppress nullPointerRedundantCheck */
|
||||
|
||||
if (ev->result != ISC_R_SUCCESS) {
|
||||
tcpmsg->result = ev->result;
|
||||
|
||||
@@ -137,7 +137,9 @@ isccc_alist_delete(isccc_sexpr_t *alist, const char *key)
|
||||
INSIST(rest->type == ISCCC_SEXPRTYPE_DOTTEDPAIR);
|
||||
car = CAR(rest);
|
||||
INSIST(car != NULL && car->type == ISCCC_SEXPRTYPE_DOTTEDPAIR);
|
||||
/* cppcheck-suppress nullPointerRedundantCheck */
|
||||
caar = CAR(car);
|
||||
/* cppcheck-suppress nullPointerRedundantCheck */
|
||||
if (caar->type == ISCCC_SEXPRTYPE_STRING &&
|
||||
strcmp(caar->value.as_string, key) == 0) {
|
||||
CDR(prev) = CDR(rest);
|
||||
|
||||
Reference in New Issue
Block a user