[uim-commit] r219 - trunk/uim

ekato@freedesktop.org ekato@freedesktop.org
Mon Jan 10 04:03:25 PST 2005


Author: ekato
Date: 2005-01-10 04:03:23 -0800 (Mon, 10 Jan 2005)
New Revision: 219

Modified:
   trunk/uim/uim.c
Log:
* uim/uim.c (uim_check_im_exist) : Add sanity check for the case
  getting NULL evaluated string with uim-get-default-im-name or
  uim-get-im-name-for-locale.  Thanks Mike FABIAN for reporting.


Modified: trunk/uim/uim.c
===================================================================
--- trunk/uim/uim.c	2005-01-10 11:56:27 UTC (rev 218)
+++ trunk/uim/uim.c	2005-01-10 12:03:23 UTC (rev 219)
@@ -463,6 +463,10 @@
 uim_check_im_exist(const char *im_engine_name)
 {
   int i;
+
+  if (im_engine_name == NULL)
+    return NULL;
+
   for(i = 0; i < uim_nr_im; i++) {
     struct uim_im *im = &uim_im_array[i];
     if (strcmp(im_engine_name, im->name) == 0) {



More information about the Uim-commit mailing list