2013-09-26 17:14:40 +02:00

23 lines
510 B
Plaintext

$NetBSD: patch-ac,v 1.6 2007/04/19 21:39:18 wiz Exp $
--- libxklavier/xklavier.c.orig 2007-02-23 21:56:59.000000000 +0000
+++ libxklavier/xklavier.c
@@ -18,6 +18,7 @@
*/
#include <string.h>
+#include <stdlib.h>
#include <time.h>
#include <X11/Xatom.h>
@@ -492,8 +493,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();
}
}