Commit 81c5b9e8 authored by Guido Gunther's avatar Guido Gunther
Browse files

Merge branch 'crash_layout' into 'master'

Layouts: Fix crash on no layout set

See merge request !31
parents 0c36205e 6c538c47
Pipeline #2587 passed with stage
in 49 seconds
......@@ -870,8 +870,8 @@ update_keymap(struct virtual_keyboard *virtual_keyboard)
{
const char *keymap_str = default_keymap_str;
for (unsigned i = 0; i < layouts_count; i++) {
if (strcmp(layouts[i]->language,
virtual_keyboard->preferred_layout) == 0) {
if (g_strcmp0(layouts[i]->language,
virtual_keyboard->preferred_layout) == 0) {
keymap_str = layouts[i]->keymap_str;
break;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment