From 8b6c64f9ec6dfdbe56d76c5b1681276659155333 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 20 Oct 2023 11:15:03 +0200 Subject: [PATCH] build: Let the get-integer action return None If used with the format-and-define action, this will result in an undefined define. --- wscript | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wscript b/wscript index 65f90fc324..69732d4e17 100755 --- a/wscript +++ b/wscript @@ -999,8 +999,8 @@ class OptionItem(Item): cic.add_option(name) except configparser.NoOptionError: value = self.default_value(conf.env.ENABLE) - if value is None: - return value + if not value: + return None try: return eval(value) except Exception as e: