Revision: 6112 Author: iratqq Date: Mon Dec 7 21:18:34 2009 Log: * uim/eb.c (c_uim_eb_search_text): - Check return value. - Use direct string.
http://code.google.com/p/uim/source/detail?r=6112 Modified: /trunk/uim/eb.c ======================================= --- /trunk/uim/eb.c Mon Dec 7 20:12:36 2009 +++ /trunk/uim/eb.c Mon Dec 7 21:18:34 2009 @@ -57,7 +57,11 @@ static uim_lisp c_uim_eb_search_text(uim_lisp ueb_, uim_lisp text_) { - return MAKE_STR(uim_eb_search_text(C_PTR(ueb_), REFER_C_STR(text_))); + char *str; + + if ((str = uim_eb_search_text(C_PTR(ueb_), REFER_C_STR(text_))) == NULL) + return MAKE_STR(""); + return MAKE_STR_DIRECTLY(str); } static uim_lisp
