diff options
author | Meador Inge <meadori@gmail.com> | 2016-05-01 02:56:59 (GMT) |
---|---|---|
committer | Meador Inge <meadori@gmail.com> | 2016-05-01 02:56:59 (GMT) |
commit | ae21a8a555c1d9ce7e3d2dd2c15ba3675a391d58 (patch) | |
tree | 6786c9daae2351fbb187993f2db4d330aa1c7119 /Lib | |
parent | 065b40c0bdb803fa28e1e0da95269fdb1856ad10 (diff) | |
download | cpython-ae21a8a555c1d9ce7e3d2dd2c15ba3675a391d58.zip cpython-ae21a8a555c1d9ce7e3d2dd2c15ba3675a391d58.tar.gz cpython-ae21a8a555c1d9ce7e3d2dd2c15ba3675a391d58.tar.bz2 |
Issue #24114: Fix an uninitialized variable in `ctypes.util`.
The bug only occurs on SunOS when the ctypes implementation searches
for the `crle` program. Patch by Xiang Zhang. Tested on SunOS by
Kees Bos.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/ctypes/util.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/ctypes/util.py b/Lib/ctypes/util.py index 1e882e3..c437ed3 100644 --- a/Lib/ctypes/util.py +++ b/Lib/ctypes/util.py @@ -191,6 +191,7 @@ elif os.name == "posix": else: cmd = 'env LC_ALL=C /usr/bin/crle 2>/dev/null' + paths = None for line in os.popen(cmd).readlines(): line = line.strip() if line.startswith('Default Library Path (ELF):'): |