Skip to content

Commit e5e4270

Browse files
authored
Merge pull request #797 from oflebbe/glyph
fix: unintialized data in glyph
2 parents b0fbe40 + f5287f8 commit e5e4270

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

clib.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nuklear",
3-
"version": "4.12.5",
3+
"version": "4.12.6",
44
"repo": "Immediate-Mode-UI/Nuklear",
55
"description": "A small ANSI C gui toolkit",
66
"keywords": ["gl", "ui", "toolkit"],

nuklear.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18304,7 +18304,7 @@ nk_input_glyph(struct nk_context *ctx, const nk_glyph glyph)
1830418304
NK_API void
1830518305
nk_input_char(struct nk_context *ctx, char c)
1830618306
{
18307-
nk_glyph glyph;
18307+
nk_glyph glyph = {0};
1830818308
NK_ASSERT(ctx);
1830918309
if (!ctx) return;
1831018310
glyph[0] = c;
@@ -30700,6 +30700,7 @@ nk_tooltipfv(struct nk_context *ctx, const char *fmt, va_list args)
3070030700
/// - [y]: Minor version with non-breaking API and library changes
3070130701
/// - [z]: Patch version with no direct changes to the API
3070230702
///
30703+
/// - 2025/03/29 (4.12.6) - Fix unitialized data in nk_input_char
3070330704
/// - 2025/03/05 (4.12.5) - Fix scrolling knob also scrolling parent window, remove dead code
3070430705
/// - 2024/12/11 (4.12.4) - Fix array subscript [0, 0] is outside array bounds of ‘char[1]’
3070530706
/// - 2024/12/11 (4.12.3) - Fix border color for property widgets

src/CHANGELOG

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
/// - [y]: Minor version with non-breaking API and library changes
88
/// - [z]: Patch version with no direct changes to the API
99
///
10+
/// - 2025/03/29 (4.12.6) - Fix unitialized data in nk_input_char
1011
/// - 2025/03/05 (4.12.5) - Fix scrolling knob also scrolling parent window, remove dead code
1112
/// - 2024/12/11 (4.12.4) - Fix array subscript [0, 0] is outside array bounds of ‘char[1]’
1213
/// - 2024/12/11 (4.12.3) - Fix border color for property widgets

src/nuklear_input.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ nk_input_glyph(struct nk_context *ctx, const nk_glyph glyph)
124124
NK_API void
125125
nk_input_char(struct nk_context *ctx, char c)
126126
{
127-
nk_glyph glyph;
127+
nk_glyph glyph = {0};
128128
NK_ASSERT(ctx);
129129
if (!ctx) return;
130130
glyph[0] = c;

0 commit comments

Comments
 (0)