Skip to content

Commit

Permalink
Merge pull request #4 from sysprog21/fix_preprocessor_expanded_empty
Browse files Browse the repository at this point in the history
Check empty strings on macro expansion
  • Loading branch information
jserv authored Feb 15, 2025
2 parents 915e7bc + a8c4929 commit 3dd1b46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kconfiglib.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3dd1b46

Please sign in to comment.