Skip to content
This repository was archived by the owner on Jul 22, 2023. It is now read-only.

Commit 7f4f77b

Browse files
benoithudsonbenoithudson
andauthored
Fixed dllLocal not being initialized. (pythonnet#1252)
Co-authored-by: benoithudson <benoit.hudson@imaginary-spaces.com>
1 parent 2972f49 commit 7f4f77b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/runtime.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2155,7 +2155,7 @@ internal static void Py_CLEAR(ref IntPtr ob)
21552155
internal static void SetNoSiteFlag()
21562156
{
21572157
var loader = LibraryLoader.Get(NativeCodePageHelper.OperatingSystem);
2158-
IntPtr dllLocal;
2158+
IntPtr dllLocal = IntPtr.Zero;
21592159
if (_PythonDll != "__Internal")
21602160
{
21612161
dllLocal = loader.Load(_PythonDll);

0 commit comments

Comments
 (0)