aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers.py
diff options
context:
space:
mode:
authorHemmo Nieminen <hemmo.nieminen@iki.fi>2017-01-31 19:10:08 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2017-02-02 19:39:33 +0200
commite42f366e0b272196b99ae4f80453d6679b3f90bb (patch)
treed15531d6760eec2a2671554b75e84c88831726c7 /mesonbuild/compilers.py
parent380b9157b8a282552e1463ca9a0e486e5b6319e2 (diff)
downloadmeson-e42f366e0b272196b99ae4f80453d6679b3f90bb.zip
meson-e42f366e0b272196b99ae4f80453d6679b3f90bb.tar.gz
meson-e42f366e0b272196b99ae4f80453d6679b3f90bb.tar.bz2
Fix an uninitialized variable access error.
To reproduce, one could write: foo = files('foo.c') foo[0].path() and get: Traceback (most recent call last): [snip] File "/home/trhd/Projects/meson/mesonbuild/interpreterbase.py", line 398, in method_call raise InvalidArguments('Variable "%s" is not callable.' % object_name) UnboundLocalError: local variable 'object_name' referenced before assignment Fix this by handling file objects separately.
Diffstat (limited to 'mesonbuild/compilers.py')
0 files changed, 0 insertions, 0 deletions