From e8d46a3cce482bf4b897b80f531b92e12424c420 Mon Sep 17 00:00:00 2001 From: David Berry Date: Mon, 3 Dec 2012 12:03:56 +0000 Subject: [PATCH] smurf: Ignore blank parameter values supplied on the command line --- applications/smurf/scripts/starutil.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/applications/smurf/scripts/starutil.py b/applications/smurf/scripts/starutil.py index a0f22b74570..daca553652e 100755 --- a/applications/smurf/scripts/starutil.py +++ b/applications/smurf/scripts/starutil.py @@ -584,14 +584,15 @@ def __init__(self,params): name = None value = item - if value[0] == "\"" or value[0] == "'": - if value[0] == value[-1]: - value = value[1:-1] + if len(value) > 0: + if value[0] == "\"" or value[0] == "'": + if value[0] == value[-1]: + value = value[1:-1] - if name == None: - byPosition.append(value) - else: - byName[name] = value + if name == None: + byPosition.append(value) + else: + byName[name] = value # Loop round all legal parameter names, maintaining the zero-based # index of the current parameter..