Merge branch '3965-source-never-read-master.c-v9_18' into 'bind-9.18'

[9.18] Fix scan-build issue: initialized value never read

See merge request isc-projects/bind9!7738
This commit is contained in:
Matthijs Mekking 2023-03-29 14:11:49 +00:00
commit 44ccc0b9d0
2 changed files with 4 additions and 1 deletions

View file

@ -1,3 +1,6 @@
6129. [cleanup] Value stored to 'source' during its initialization is
never read. [GL #3965]
6128. [bug] Fix an omission in an earlier commit to avoid a race
between the 'dns__catz_update_cb()' and
'dns_catz_dbupdate_callback()' functions. [GL #3968]

View file

@ -1090,7 +1090,7 @@ load_text(dns_loadctx_t *lctx) {
char *lhs = NULL;
char *gtype = NULL;
char *rhs = NULL;
const char *source = "";
const char *source;
unsigned long line = 0;
bool explicit_ttl;
char classname1[DNS_RDATACLASS_FORMATSIZE];