From: handa Date: Mon, 4 Jun 2007 07:05:17 +0000 (+0000) Subject: (open_im): Check if the input method has at least one X-Git-Tag: FLT-base~25 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=694013b1aabc61e9e6648f536e6d6ed5d1e967c7;p=m17n%2Fm17n-lib.git (open_im): Check if the input method has at least one state. --- diff --git a/src/input.c b/src/input.c index c8997f9..7b9a908 100644 --- a/src/input.c +++ b/src/input.c @@ -3684,7 +3684,7 @@ open_im (MInputMethod *im) { MInputMethodInfo *im_info = get_im_info (im->language, im->name, Mnil, Mnil); - if (! im_info) + if (! im_info || ! im_info->states) MERROR (MERROR_IM, -1); im->info = im_info;