From bab269813e8d5254abd9f07b613d3646230be8c3 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 22 Apr 2021 13:27:43 +1000 Subject: xkbinfo: continue after skipping a duplicate layout, don't return Copy-paste error introduced in aa7e3440511. We're inside the loop listing through all layouts here so returning early means we skip any layout after the duplicate one. Before: $ test-xkb-info | wc -l 3913 Now: $ test-xkb-info | wc -l 3923 Fixes aa7e344051170ea47585d3d72b1a36e3991121f9 Found by Jason Francis (@jf) --- libgnome-desktop/gnome-xkb-info.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libgnome-desktop') diff --git a/libgnome-desktop/gnome-xkb-info.c b/libgnome-desktop/gnome-xkb-info.c index f2a3214b..2bb3036c 100644 --- a/libgnome-desktop/gnome-xkb-info.c +++ b/libgnome-desktop/gnome-xkb-info.c @@ -271,7 +271,7 @@ add_layouts (GnomeXkbInfo *self, if (g_hash_table_contains (priv->layouts_table, l->id)) { g_clear_pointer (&l, free_layout); - return; + continue; } g_hash_table_replace (priv->layouts_table, l->id, l); -- cgit v1.2.1