summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuna Oh <duna.oh@samsung.com>2022-02-11 13:56:32 +0900
committerJihoon Kim <jihoon48.kim@samsung.com>2023-12-22 08:46:50 +0900
commit1608c9d4a753e66c7e46dc2a5be69079470ec75b (patch)
tree2ffaf905683acd23adaf4472871f300750284dd8
parent4e08273c7ea262fba0b2507b04cd1e21e01c0d5f (diff)
downloadlibxkbcommon-1608c9d4a753e66c7e46dc2a5be69079470ec75b.tar.gz
libxkbcommon-1608c9d4a753e66c7e46dc2a5be69079470ec75b.tar.bz2
libxkbcommon-1608c9d4a753e66c7e46dc2a5be69079470ec75b.zip
table.c: Fix a coverity warning of uninitialized value 'dummy'
-rw-r--r--src/compose/table.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/compose/table.c b/src/compose/table.c
index fc81963..3f50d3d 100644
--- a/src/compose/table.c
+++ b/src/compose/table.c
@@ -37,7 +37,7 @@ xkb_compose_table_new(struct xkb_context *ctx,
{
char *resolved_locale;
struct xkb_compose_table *table;
- struct compose_node dummy;
+ struct compose_node dummy = {0,};
resolved_locale = resolve_locale(ctx, locale);
if (!resolved_locale)
@@ -60,6 +60,8 @@ xkb_compose_table_new(struct xkb_context *ctx,
darray_init(table->utf8);
dummy.keysym = XKB_KEY_NoSymbol;
+ dummy.lokid = 0;
+ dummy.hikid = 0;
dummy.leaf.is_leaf = true;
dummy.leaf.utf8 = 0;
dummy.leaf.keysym = XKB_KEY_NoSymbol;