The following patch fixes a segfault condition when a key combination isn't
bound and falls through xemacs checking into gtk checking (or at least
that's how it appears from a user perspective).
Signed-off-by: Sean Dague <sean(a)dague.net>
Diffstat output:
console-gtk.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff -ur xemacs-21.5.22/src/console-gtk.c
xemacs-21.5.22.sld/src/console-gtk.c
--- xemacs-21.5.22/src/console-gtk.c 2005-06-26 14:05:02.000000000 -0400
+++ xemacs-21.5.22.sld/src/console-gtk.c 2005-10-02
22:54:16.000000000 -0400
@@ -155,8 +155,8 @@
{
CHECK_CHAR(key);
}
-
- if (!(HASH_TABLEP(Qgtk_seen_characters)))
+
+ if (!Qgtk_seen_characters || !(HASH_TABLEP(Qgtk_seen_characters)))
{
Qgtk_seen_characters = make_lisp_hash_table (128,
HASH_TABLE_NON_WEAK,
HASH_TABLE_EQUAL);
--
__________________________________________________________________
Sean Dague Mid-Hudson Valley
sean at dague dot net Linux Users Group
http://dague.net http://mhvlug.org
There is no silver bullet. Plus, werewolves make better neighbors
than zombies, and they tend to keep the vampire population down.
__________________________________________________________________