From 99eeb4b432de13e0c96a84781675709a1b5f5281 Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Fri, 16 Oct 2020 13:55:41 +0200 Subject: [PATCH] kconfiglib: check for empty strings on macro expansion --- kconfiglib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kconfiglib.py b/kconfiglib.py index c67895c..c026250 100644 --- a/kconfiglib.py +++ b/kconfiglib.py @@ -2612,7 +2612,7 @@ def _parse_assignment(self, s): else: break - if s.isspace(): + if not s or s.isspace(): # We also accept a bare macro on a line (e.g. # $(warning-if,$(foo),ops)), provided it expands to a blank string return