OSDN Git Service

*** empty log message ***
authorkonn <konn@1a406e8e-add9-4483-a2c8-d8cac5b7c224>
Fri, 9 Jun 2006 11:23:39 +0000 (11:23 +0000)
committerkonn <konn@1a406e8e-add9-4483-a2c8-d8cac5b7c224>
Fri, 9 Jun 2006 11:23:39 +0000 (11:23 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/modchxj/mod_chxj/trunk@367 1a406e8e-add9-4483-a2c8-d8cac5b7c224

src/chxj_hdml.c

index 4a20afd..f9273bd 100644 (file)
@@ -538,21 +538,21 @@ s_hdml_search_emoji(hdml_t* hdml, char* txt, char** rslt)
   len = strlen(txt);
   r = hdml->doc->r;
 
-  if (spec == NULL)
+  if (!spec)
     ap_log_rerror(APLOG_MARK, APLOG_DEBUG,0,r, "spec is NULL");
 
   for (ee = hdml->conf->emoji;
        ee;
-       ee = ee->next) 
-  {
+       ee = ee->next) {
     unsigned char hex1byte;
     unsigned char hex2byte;
-    if (ee->imode == NULL)
-    {
+
+    if (!ee->imode) {
       ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r,
                       "emoji->imode is NULL");
       continue;
     }
+
     hex1byte = ee->imode->hex1byte & 0xff;
     hex2byte = ee->imode->hex2byte & 0xff;