Fixed dllLocal not being initialized. (#1252) · pythonnet/pythonnet@7f4f77b

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Commit 7f4f77b

benoithudsonbenoithudson

and

benoithudson

authored

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

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)