Delete unnecessary struct initialization (dotnet/coreclr#21482)
authorJan Kotas <jkotas@microsoft.com>
Tue, 11 Dec 2018 12:12:12 +0000 (07:12 -0500)
committerGitHub <noreply@github.com>
Tue, 11 Dec 2018 12:12:12 +0000 (07:12 -0500)
Commit migrated from https://github.com/dotnet/coreclr/commit/fcbe7ce1f06aa7c84dcfb954eb8be2d3deba2483

src/coreclr/src/System.Private.CoreLib/src/System/DateTime.Windows.cs

index f34a6e0..9d0d0cd 100644 (file)
@@ -72,7 +72,8 @@ namespace System
 
         private static unsafe bool SystemSupportsLeapSeconds()
         {
-            Interop.NtDll.SYSTEM_LEAP_SECOND_INFORMATION slsi = new Interop.NtDll.SYSTEM_LEAP_SECOND_INFORMATION();
+            Interop.NtDll.SYSTEM_LEAP_SECOND_INFORMATION slsi;
+
             return Interop.NtDll.NtQuerySystemInformation(
                                     Interop.NtDll.SystemLeapSecondInformation,
                                     (void *) &slsi,