$NetBSD: patch-ac,v 1.7 2019/01/23 15:34:31 youri Exp $ --- libxklavier/xklavier.c.orig 2013-02-20 01:10:50.000000000 +0000 +++ libxklavier/xklavier.c @@ -18,6 +18,7 @@ */ #include +#include #include #include @@ -184,9 +185,11 @@ xkl_engine_start_listen(XklEngine * engi (xkl_engine_priv(engine, features) & XKLF_REQUIRES_MANUAL_LAYOUT_MANAGEMENT) && (what & XKLL_MANAGE_LAYOUTS)) + /* xkl_debug(0, "The backend does not require manual layout management - " "but it is provided by the application\n"); + */ xkl_engine_resume_listen(engine); xkl_engine_load_window_tree(engine); @@ -517,8 +520,7 @@ xkl_engine_ensure_vtable_inited(XklEngin if (xkl_engine_priv(engine, backend_id) == NULL) { xkl_debug(0, "ERROR: XKL VTable is NOT initialized.\n"); /* force the crash! */ - p = NULL; - *p = '\0'; + abort(); } }