mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
Merge branch '3932-gcc-12-static-analyzer-warning-use-of-null-_frm-where-non-null-expected-in-cc-c' into 'main'
Resolve "GCC 12 static analyzer: warning: use of NULL '_frm' where non-null expected in cc.c" Closes #3932 See merge request isc-projects/bind9!7658
This commit is contained in:
commit
700d5f6b0b
1 changed files with 2 additions and 0 deletions
|
|
@ -1003,12 +1003,14 @@ isccc_cc_checkdup(isccc_symtab_t *symtab, isccc_sexpr_t *message,
|
|||
_frm = "";
|
||||
} else {
|
||||
_frm = tmp;
|
||||
INSIST(_frm != NULL);
|
||||
}
|
||||
tmp = NULL;
|
||||
if (isccc_cc_lookupstring(_ctrl, "_to", &tmp) != ISC_R_SUCCESS) {
|
||||
_to = "";
|
||||
} else {
|
||||
_to = tmp;
|
||||
INSIST(_to != NULL);
|
||||
}
|
||||
/*
|
||||
* Ensure there is no newline in any of the strings. This is so
|
||||
|
|
|
|||
Loading…
Reference in a new issue