diff src/event-Xt.c @ 3072:4c038e89d563

[xemacs-hg @ 2005-11-16 07:22:37 by stephent] Assorted minor fixes. TODO comment in configure.ac: <87irutytzq.fsf@tleepslib.sk.tsukuba.ac.jp> Avoid warning, don't redefine integer types on Mac OS X: <87ek5hytvq.fsf@tleepslib.sk.tsukuba.ac.jp> Fix uninitialized variable: <87acg5yttp.fsf@tleepslib.sk.tsukuba.ac.jp> Eliminate warnings for unused parameters and functions: <8764qtytrp.fsf@tleepslib.sk.tsukuba.ac.jp> Quiet byte-compiler in select.el: <871x1hytow.fsf@tleepslib.sk.tsukuba.ac.jp> Quiet compiler about unused parameters in sound.el: <87wtj9xf16.fsf@tleepslib.sk.tsukuba.ac.jp>
author stephent
date Wed, 16 Nov 2005 07:22:46 +0000
parents ee35a8fdcfcd
children ad2f4ae9895b
line wrap: on
line diff
--- a/src/event-Xt.c	Wed Nov 16 07:14:16 2005 +0000
+++ b/src/event-Xt.c	Wed Nov 16 07:22:46 2005 +0000
@@ -836,7 +836,7 @@
   KeySym keysym = 0;
 
 #ifdef HAVE_XIM
-  int len;
+  int len = 0;
   /* Some implementations of XmbLookupString don't return
      XBufferOverflow correctly, so increase the size of the xim input
      buffer from 64 to the more reasonable size 513, as Emacs has done.
@@ -893,7 +893,7 @@
 	stderr_out (" keysym=%s",  XKeysymToString (keysym));
       if (status == XLookupChars  || status == XLookupBoth)
 	{
-	  if (len != 1)
+	  if (len > 1)
 	    {
 	      int j;
 	      stderr_out (" chars=\"");