From 8ae9138587051224f0b886137555872c21ec60c0 Mon Sep 17 00:00:00 2001 From: Jan Kotas Date: Tue, 11 Dec 2018 07:12:12 -0500 Subject: [PATCH] Delete unnecessary struct initialization (dotnet/coreclr#21482) Commit migrated from https://github.com/dotnet/coreclr/commit/fcbe7ce1f06aa7c84dcfb954eb8be2d3deba2483 --- src/coreclr/src/System.Private.CoreLib/src/System/DateTime.Windows.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/coreclr/src/System.Private.CoreLib/src/System/DateTime.Windows.cs b/src/coreclr/src/System.Private.CoreLib/src/System/DateTime.Windows.cs index f34a6e0..9d0d0cd 100644 --- a/src/coreclr/src/System.Private.CoreLib/src/System/DateTime.Windows.cs +++ b/src/coreclr/src/System.Private.CoreLib/src/System/DateTime.Windows.cs @@ -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, -- 2.7.4