summaryrefslogtreecommitdiff
path: root/tools/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/utils.py')
-rw-r--r--tools/utils.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/utils.py b/tools/utils.py
index 692cf36c69..6dc56322a5 100644
--- a/tools/utils.py
+++ b/tools/utils.py
@@ -245,7 +245,9 @@ def ProjectInfo(env):
return proj
def VersionCmp(ver1, ver2):
- la = ver1.split('.')
+ la=[];
+ if ver1:
+ la = ver1.split('.')
lb = ver2.split('.')
f = 0
if len(la) > len(lb):