Commit 407b92b
committed
scripts: menuconfig: proper handling of NULL character as input
Fixes: zephyrproject-rtos/zephyr#33212
Ignoring when user inputs NULL in a text field.
menuconfig exits with a python stack trace if NULL is provided as input
character, therefore ignore NULL as an input character to prevent this
behaviour.
A NULL character may be given accidentally by the user through the
following ways:
- Pressing `Win` key on keyboard (Windows only)
- Pressing `<CTRL>-@` / `<CTRL>-2`.
Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>1 parent 82fdbda commit 407b92b
File tree
1 file changed
+6
-0
lines changed1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1757 | 1757 | | |
1758 | 1758 | | |
1759 | 1759 | | |
| 1760 | + | |
| 1761 | + | |
| 1762 | + | |
1760 | 1763 | | |
1761 | 1764 | | |
1762 | 1765 | | |
| |||
2196 | 2199 | | |
2197 | 2200 | | |
2198 | 2201 | | |
| 2202 | + | |
| 2203 | + | |
| 2204 | + | |
2199 | 2205 | | |
2200 | 2206 | | |
2201 | 2207 | | |
| |||
0 commit comments