From a51300ddb359259581c2aa7e44e7a861bff10732 Mon Sep 17 00:00:00 2001 From: David Hale Date: Mon, 18 May 2026 21:01:29 -0700 Subject: [PATCH] fix: uninitialize variable could result in garbage in fits header --- camerad/astrocam.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/camerad/astrocam.cpp b/camerad/astrocam.cpp index fa708540..42411bfd 100644 --- a/camerad/astrocam.cpp +++ b/camerad/astrocam.cpp @@ -1956,7 +1956,7 @@ namespace AstroCam { std::string timestring; timespec timenow; double mjd0, mjd1, mjd; - double airmass0, airmass1, airmass; + double airmass0=NAN, airmass1=NAN, airmass=NAN; if ( !interface.in_readout() ) { logwrite( function, "sending command to stop clocks!" );