mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 11:40:10 +01:00
bin/symbols-check: fix fields length condition before accessing fields
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35891>
This commit is contained in:
parent
f28cda029c
commit
e626636e90
1 changed files with 1 additions and 1 deletions
|
|
@ -67,7 +67,7 @@ def get_symbols_nm(nm, lib):
|
||||||
stderr=open(os.devnull, 'w')).decode("ascii")
|
stderr=open(os.devnull, 'w')).decode("ascii")
|
||||||
for line in output.splitlines():
|
for line in output.splitlines():
|
||||||
fields = line.split()
|
fields = line.split()
|
||||||
if len(fields) == 2 or fields[1] == 'U':
|
if len(fields) == 2 and fields[1] == 'U':
|
||||||
continue
|
continue
|
||||||
symbol_name = fields[0]
|
symbol_name = fields[0]
|
||||||
if platform_name == 'Linux' or platform_name == 'GNU' or platform_name.startswith('GNU/'):
|
if platform_name == 'Linux' or platform_name == 'GNU' or platform_name.startswith('GNU/'):
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue