diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2018-11-02 02:35:49 +0100 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2018-11-02 03:52:46 +0100 |
| commit | 0e6cd82908f5c649e15e6a63ad77a94f627449d2 (patch) | |
| tree | c0d9b6afa0a4a46f0a70ec37d9acabfc4c8e0617 /examples/print_tree.py | |
| parent | b0e4a4fda7d623284ac1949d6797b9f0a1995d88 (diff) | |
Fix removal of multiple consecutive 'if' nodes
Despite 'if' nodes being flattened before 'if' removal, consecutive 'if'
nodes can still show up for code like the following:
...
if X
endif
if X
endif
...
_remove_ifs() failed to remove the second 'if' node, leading to a crash
e.g. when turning on show-all mode in the menuconfig in a menu with such
code (due to the unexpected 'if' node).
Stuff like the above could potentially result from 'osource's with no
matches, though I just spotted the error while looking over the code.
Fix the 'if' removal logic to properly handle consecutive 'if' nodes.
Diffstat (limited to 'examples/print_tree.py')
0 files changed, 0 insertions, 0 deletions
