8000 Fixed dllLocal not being initialized. (#1252) · pythonnet/pythonnet@7f4f77b · GitHub
[go: up one dir, main page]

Skip to content

Commit 7f4f77b

Browse files
benoithudsonbenoithudson
andauthored
Fixed dllLocal not being initialized. (#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)
0