OSDN Git Service

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

src/chxj_chtml10.c
src/chxj_hdml.c

index 1409e5b..1686400 100644 (file)
@@ -1505,8 +1505,7 @@ s_chtml10_start_option_tag(chtml10_t* chtml10, Node* child)
       selected = apr_pstrdup(r->pool, val);
     }
     else
-    if (strcasecmp(nm, "value") == 0)
-    {
+    if ((*nm == 'v' || *nm == 'V') && strcasecmp(nm, "value") == 0) {
       /*----------------------------------------------------------------------*/
       /* CHTML 1.0 version 2.0                                                */
       /*----------------------------------------------------------------------*/
index 5c5fe74..8944ac2 100644 (file)
@@ -150,8 +150,7 @@ chxj_exchange_hdml(request_rec* r,
         );
     dst = apr_pstrdup(r->pool, hdml.out);
   }
-  else 
-  {
+  else {
     /*------------------------------------------------------------------------*/
     /* Here, the parsing of the received character string is done             */
     /*------------------------------------------------------------------------*/
@@ -184,8 +183,7 @@ chxj_exchange_hdml(request_rec* r,
   /* When there is no processing result, former character string is copied    */
   /* and it returns it.                                                       */
   /*--------------------------------------------------------------------------*/
-  if (dst == NULL) 
-  {
+  if (!dst) {
     *dstlen = srclen;
     return apr_pstrdup(r->pool,src);
   }
@@ -196,6 +194,7 @@ chxj_exchange_hdml(request_rec* r,
   /* Null is set at the end of the character string to make sure.             */
   /*--------------------------------------------------------------------------*/
   dst[hdml.out_len] = 0;
+
   return dst;
 }