mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
check for NULL before closing batchfp
this silences a warning from clang-scan 19.
This commit is contained in:
parent
9f9a63b04e
commit
2b58dc89f5
1 changed files with 1 additions and 1 deletions
|
|
@ -3079,7 +3079,7 @@ void
|
|||
dig_shutdown(void) {
|
||||
destroy_lookup(default_lookup);
|
||||
if (atomic_load(&batchname) != 0) {
|
||||
if (batchfp != stdin) {
|
||||
if (batchfp != NULL && batchfp != stdin) {
|
||||
fclose(batchfp);
|
||||
}
|
||||
atomic_store(&batchname, 0);
|
||||
|
|
|
|||
Loading…
Reference in a new issue