summaryrefslogtreecommitdiff
path: root/buildtools
diff options
context:
space:
mode:
authorAlexander Bokovoy <ab@samba.org>2012-05-21 18:38:56 +0300
committerAlexander Bokovoy <ab@samba.org>2012-05-23 17:51:50 +0300
commit77a6c8134763dc0b50ad33e1b4419441220c47a9 (patch)
treeed1970327bb74761fd98bb9738874c3de0b296ac /buildtools
parent744f9910c81cee13228165db4e46200c41c69221 (diff)
downloadsamba-77a6c8134763dc0b50ad33e1b4419441220c47a9.tar.gz
samba-77a6c8134763dc0b50ad33e1b4419441220c47a9.tar.bz2
samba-77a6c8134763dc0b50ad33e1b4419441220c47a9.zip
wafsamba: ensure TO_LIST does not fail with empty string
Diffstat (limited to 'buildtools')
-rw-r--r--buildtools/wafsamba/samba_utils.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/buildtools/wafsamba/samba_utils.py b/buildtools/wafsamba/samba_utils.py
index 70d06704e7..c252663b93 100644
--- a/buildtools/wafsamba/samba_utils.py
+++ b/buildtools/wafsamba/samba_utils.py
@@ -215,6 +215,8 @@ def TO_LIST(str, delimiter=None):
return []
if isinstance(str, list):
return str
+ if len(str) == 0:
+ return []
lst = str.split(delimiter)
# the string may have had quotes in it, now we
# check if we did have quotes, and use the slower shlex