Merge branch '3965-source-never-read-master.c' into 'main'

Fix scan-build issue: initialized value never read

Closes #3965

See merge request isc-projects/bind9!7725
This commit is contained in:
Matthijs Mekking
2023-03-28 12:57:49 +00:00
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

@@ -1043,7 +1043,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];