blob: 7c10b982774350d295713b46fc755581d8ec3dbc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
$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();
}
}
|