From 90c70dce977a378d90795a502eddf739bef3df48 Mon Sep 17 00:00:00 2001 From: benoithudson Date: Fri, 9 Oct 2020 00:38:25 -0400 Subject: [PATCH] Fixed dllLocal not being initialized. --- src/runtime/runtime.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/runtime.cs b/src/runtime/runtime.cs index 83d404f9d..915e1db00 100644 --- a/src/runtime/runtime.cs +++ b/src/runtime/runtime.cs @@ -2155,7 +2155,7 @@ internal static void Py_CLEAR(ref IntPtr ob) internal static void SetNoSiteFlag() { var loader = LibraryLoader.Get(NativeCodePageHelper.OperatingSystem); - IntPtr dllLocal; + IntPtr dllLocal = IntPtr.Zero; if (_PythonDll != "__Internal") { dllLocal = loader.Load(_PythonDll);