Repository navigation
Commit 1cbccb4
committed
if-options: restrict nameless option defines to encap
Nameless OT_OPTION entries are only meaningful inside an encap block;
a nameless top-level define/embed is unreferenceable and leaves
opt->var NULL, which later crashes print_option (%s) and the embedded
lookup (strcmp). Require a variable name outside O_ENCAP for both the
absent-name and empty-name cases.1 parent 4afbe3b commit 1cbccb4
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2106 | 2106 | | |
2107 | 2107 | | |
2108 | 2108 | | |
2109 | | - | |
| 2109 | + | |
2110 | 2110 | | |
2111 | 2111 | | |
2112 | 2112 | | |
| |||
2118 | 2118 | | |
2119 | 2119 | | |
2120 | 2120 | | |
2121 | | - | |
| 2121 | + | |
2122 | 2122 | | |
2123 | 2123 | | |
2124 | 2124 | | |
| |||
0 commit comments