waf: ensure that MAKEFLAGS is set before parsing it
authorAndrew Tridgell <tridge@samba.org>
Tue, 15 Mar 2011 02:56:46 +0000 (13:56 +1100)
committerAndrew Tridgell <tridge@samba.org>
Tue, 15 Mar 2011 02:56:46 +0000 (13:56 +1100)
buildtools/wafsamba/samba_utils.py

index bffe98d..3adf533 100644 (file)
@@ -473,6 +473,8 @@ def CHECK_MAKEFLAGS(bld):
     if not 'WAF_MAKE' in os.environ:
         return
     makeflags = os.environ.get('MAKEFLAGS')
+    if makeflags is None:
+        return
     jobs_set = False
     # we need to use shlex.split to cope with the escaping of spaces
     # in makeflags