diff --git a/SharpUp/Checks/CachedGPPPassword.cs b/SharpUp/Checks/CachedGPPPassword.cs
index 958c905..dd7b18c 100644
--- a/SharpUp/Checks/CachedGPPPassword.cs
+++ b/SharpUp/Checks/CachedGPPPassword.cs
@@ -37,7 +37,8 @@ public CachedGPPPassword()
                     {
                         continue; // uninteresting XML files, move to next
                     }
-                    if (ParseGPPPasswordFromXml(file, out GPPPassword result))
+                    GPPPassword result;
+                    if (ParseGPPPasswordFromXml(file, out result))
                     {
                         _isVulnerable = true;
                         _details.Add(result.ToString());
diff --git a/SharpUp/Checks/DomainGPPPassword.cs b/SharpUp/Checks/DomainGPPPassword.cs
index ab1b94a..d3a2bc8 100644
--- a/SharpUp/Checks/DomainGPPPassword.cs
+++ b/SharpUp/Checks/DomainGPPPassword.cs
@@ -31,7 +31,8 @@ public DomainGPPPassword()
                             file.Contains("Printers.xml") ||
                             file.Contains("Drives.xml"))
                         {
-                            if (ParseGPPPasswordFromXml(file, out GPPPassword result))
+                            GPPPassword result;
+                            if (ParseGPPPasswordFromXml(file, out result))
                             {
                                 _isVulnerable = true;
                                 _details.Add(result.ToString());