check for NULL before closing batchfp
this silences a warning from clang-scan 19.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user