diff options
author | Max Kellermann <max@duempel.org> | 2015-01-27 09:07:41 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2015-01-27 09:07:41 +0100 |
commit | 822ac7b100e6d0ed876ec8c6dea09f3ab0809655 (patch) | |
tree | 64ab2ce1528d695598b917fdf7ceeee4fada7b0c /win32 | |
parent | cc70c5c67df6cf80bf8066b5d5150f0d3b0c882a (diff) | |
download | mpd-822ac7b100e6d0ed876ec8c6dea09f3ab0809655.tar.gz mpd-822ac7b100e6d0ed876ec8c6dea09f3ab0809655.tar.xz mpd-822ac7b100e6d0ed876ec8c6dea09f3ab0809655.zip |
win32/build.py: fix IndexError when no command-line arguments are given
Diffstat (limited to 'win32')
-rwxr-xr-x | win32/build.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/build.py b/win32/build.py index 28b92c9c1..8e97564bc 100755 --- a/win32/build.py +++ b/win32/build.py @@ -10,7 +10,7 @@ configure_args = sys.argv[1:] host_arch = 'i686-w64-mingw32' -if configure_args[0] == '--64': +if len(configure_args) > 0 and configure_args[0] == '--64': configure_args = configure_args[1:] host_arch = 'x86_64-w64-mingw32' |