We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b6f815 commit ecd7e60Copy full SHA for ecd7e60
src/runtime/runtime.cs
@@ -289,16 +289,16 @@ internal static void Initialize()
289
Error = new IntPtr(-1);
290
291
#if PYTHON3
292
- IntPtr dll = IntPtr.Zero;
+ IntPtr dllLocal = IntPtr.Zero;
293
if (Runtime.dll != "__Internal")
294
{
295
NativeMethods.LoadLibrary(Runtime.dll);
296
}
297
- _PyObject_NextNotImplemented = NativeMethods.GetProcAddress(dll, "_PyObject_NextNotImplemented");
+ _PyObject_NextNotImplemented = NativeMethods.GetProcAddress(dllLocal, "_PyObject_NextNotImplemented");
298
#if !(MONO_LINUX || MONO_OSX)
299
- if (dll != IntPtr.Zero)
+ if (dllLocal != IntPtr.Zero)
300
301
- NativeMethods.FreeLibrary(dll);
+ NativeMethods.FreeLibrary(dllLocal);
302
303
#endif
304
0 commit comments