Commit e886f93
gh-152275: Initialize the optional attr argument to zero
For methods where attr is an optional argument (addch(), addstr(),
insch(), ...) the attr converter left the attr_t variable uninitialized
when the argument was omitted, so a garbage value could be applied as
character attributes. Give the converter c_ignored_default, as the
builtin numeric converters have, so the option-group variable is
initialized to zero.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 7dd5e94 commit e886f93
2 files changed
Lines changed: 14 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
931 | 931 | | |
932 | 932 | | |
933 | 933 | | |
| 934 | + | |
934 | 935 | | |
935 | | - | |
| 936 | + | |
936 | 937 | | |
937 | 938 | | |
938 | 939 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments