From 10e5b9ff8e8253047569d59aedad467bf7fa3f35 Mon Sep 17 00:00:00 2001 From: konn Date: Fri, 9 Jun 2006 11:24:54 +0000 Subject: [PATCH] *** empty log message *** git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/modchxj/mod_chxj/trunk@368 1a406e8e-add9-4483-a2c8-d8cac5b7c224 --- src/chxj_hdml.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/chxj_hdml.c b/src/chxj_hdml.c index f9273bd7..95c99619 100644 --- a/src/chxj_hdml.c +++ b/src/chxj_hdml.c @@ -556,12 +556,10 @@ s_hdml_search_emoji(hdml_t* hdml, char* txt, char** rslt) hex1byte = ee->imode->hex1byte & 0xff; hex2byte = ee->imode->hex2byte & 0xff; - if (ee->imode->string != NULL + if (ee->imode->string && strlen(ee->imode->string) > 0 - && strncasecmp(ee->imode->string, txt, strlen(ee->imode->string)) == 0) - { - if (spec == NULL || spec->emoji_type == NULL) - { + && strncasecmp(ee->imode->string, txt, strlen(ee->imode->string)) == 0) { + if (spec == NULL || spec->emoji_type == NULL) { *rslt = apr_psprintf(r->pool, "", ee->ezweb->typeA); -- 2.11.0